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:
Ilia K 2015-05-12 12:13:12 +00:00
parent 32cd69a2eb
commit feda0b7ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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