Skip to content

Commit c20e31f

Browse files
committed
r/ Disable LTO when running coverage.
1 parent 2d88f98 commit c20e31f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/R.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
env:
163163
NOT_CRAN: false
164164
run: |
165-
coverage <- withr::with_makevars(c(MOOCORE_DEBUG="1"),
165+
coverage <- withr::with_makevars(c(MOOCORE_DEBUG="1", LTO_OPT=""),
166166
covr::package_coverage(type="all", quiet=FALSE, clean = FALSE,
167167
commentDonttest = FALSE, commentDontrun = FALSE, flags="R",
168168
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package"))

c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ $(CXXSHLIB): $(LIBHV_OBJS)
226226
$(CXX) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(SHLIB_LDFLAGS)
227227

228228
clean:
229-
@-$(RM) *.s *.i
229+
@-$(RM) *.s *.i *.gcda mt19937/*.gcda
230230
@-$(RM) config.status config.log
231231
@-$(RM) Hypervolume_MEX.mex
232232
@-$(RM) $(SHLIB) $(CXXSHLIB)

r/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ winbuild winbuild_:
112112
$(Reval) "devtools::check_win_devel()"
113113

114114
covr:
115-
$(Reval) "Sys.setenv(NOT_CRAN='true');covr::report(covr::package_coverage(type='all', quiet=FALSE), browse=TRUE)"
115+
$(Reval) "Sys.setenv(NOT_CRAN='true');covr::report(withr::with_makevars(c(MOOCORE_DEBUG='1', LTO_OPT=''), covr::package_coverage(type='all', commentDonttest=FALSE, commentDontrun=FALSE, quiet=FALSE)), browse=TRUE)"
116116

117117
benchmarks: quick-install
118118
$(RM) ./vignettes/articles/bench/*.rds

0 commit comments

Comments
 (0)