File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,12 @@ LIBFILE_EXTENSION := $(PYBIND_EXTENSION)
2626
2727# pybind11 is heavily templated and generates code that is bloated before optimization.
2828# -flto is link time optimization which apparently is important.
29- CXXFLAGS += -O3 -flto -I.
30- LDFLAGS += -flto
29+ ifndef CI_TARGETS
30+ LTOFLAG = -flto
31+ endif
32+
33+ CXXFLAGS += -O3 $(LTOFLAG ) -I.
34+ LDFLAGS += $(LTOFLAG )
3135
3236ifeq ($(shell uname) ,Darwin)
3337 LDFLAGS += -undefined dynamic_lookup
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ CCC=$(mtoken CXX "$CXX")
6868echo " Building tools..." [Time: $( date) ]
6969runvx cd tools
7070runvx make -j$MAXPAR openfst " $CCC " CXXFLAGS=" $CF " \
71- OPENFST_CONFIGURE=" --disable-static --enable-shared --disable-bin --disable- dependency-tracking"
71+ OPENFST_CONFIGURE=" --disable-static --enable-shared --disable-dependency-tracking"
7272runvx make -j$MAXPAR cub " $CCC " CXXFLAGS=" $CF "
7373cd ..
7474
You can’t perform that action at this time.
0 commit comments