Skip to content

Commit a888cce

Browse files
jangoreckimattdowle
authored andcommitted
LTO compilation flag, also strict compilation warning check (#3878)
1 parent 0ba9144 commit a888cce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ build: # build data.table sources as tar.gz archive
9191
tags:
9292
- macosx
9393

94-
test-rel-lin: # most comprehensive tests, force all suggests, also integration tests, using gcc -O3
94+
test-rel-lin: # most comprehensive tests, force all suggests, also integration tests, using gcc -O3 -flto
9595
<<: *test-lin
9696
image: registry.gitlab.com/jangorecki/dockerfiles/r-builder
9797
variables: # unlike CRAN
@@ -102,8 +102,8 @@ test-rel-lin: # most comprehensive tests, force all suggests, also integration
102102
TEST_DATA_TABLE_WITH_OTHER_PACKAGES: "TRUE"
103103
before_script:
104104
- mkdir -p ~/.R
105-
- echo 'CFLAGS=-g -O3 -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
106-
- echo 'CXXFLAGS=-g -O3 -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
105+
- echo 'CFLAGS=-g -O3 -flto -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
106+
- echo 'CXXFLAGS=-g -O3 -flto -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
107107
script:
108108
- Rscript -e 'source("ci.R"); install.packages(dcf.dependencies(c("DESCRIPTION","inst/tests/tests-DESCRIPTION"), which="all"))'
109109
- *copy-src
@@ -112,6 +112,7 @@ test-rel-lin: # most comprehensive tests, force all suggests, also integration
112112
- cd bus/$CI_BUILD_NAME
113113
- R CMD check $(ls -1t data.table_*.tar.gz | head -n 1)
114114
- *cleanup-src
115+
- ! grep "warning:" data.table.Rcheck/00install.out
115116

116117
test-rel-vanilla-lin: # minimal installation, no suggested deps, no vignettes or manuals, measure memory, using gcc -O0 -fno-openmp
117118
<<: *test-lin

0 commit comments

Comments
 (0)