Skip to content

Commit e03e52d

Browse files
committed
ensure compilation with Clang succeeds
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent 7c10db3 commit e03e52d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

makefile_include.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ endif # COMPILE_SIZE
9595

9696
ifneq ($(findstring clang,$(CC)),)
9797
LTM_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header
98+
ifdef IGNORE_SPEED
99+
#for dead code eliminiation
100+
LTM_CFLAGS += -O1
101+
endif
98102
endif
99103
ifneq ($(findstring mingw,$(CC)),)
100104
LTM_CFLAGS += -Wno-shadow

0 commit comments

Comments
 (0)