forked from OSchip/llvm-project
Disable GCC optimizations for builtin functions in lldb tests
This patch adds new default flag -fno-builtin which forces gcc to not optimize builtin functions. For example, without this flag GCC replaces printf("hello\n") -> puts("hello") even if -O0 was specified Also this patch fixes the MiDataTestCase.test_lldbmi_data_disassemble test on Linux/gcc. llvm-svn: 237118
This commit is contained in:
parent
32cd69a2eb
commit
feda0b7ea9
|
@ -128,7 +128,7 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
CFLAGS ?= -g -O0
|
||||
CFLAGS ?= -g -O0 -fno-builtin
|
||||
ifeq "$(OS)" "Darwin"
|
||||
CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) -I$(LLDB_BASE_DIR)include
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue