diff options
| author | Robert Flack <flackr@gmail.com> | 2015-03-24 12:41:20 +0000 |
|---|---|---|
| committer | Robert Flack <flackr@gmail.com> | 2015-03-24 12:41:20 +0000 |
| commit | 666a986839118620720171f2065c0061a8d97580 (patch) | |
| tree | c789f28fc85785e1e21d09e377ec0ca93f8e4e30 /lldb/test/python_api | |
| parent | c99ce681ca4b89222c6216e8d236c6bcc078ec60 (diff) | |
| download | bcm5719-llvm-666a986839118620720171f2065c0061a8d97580.tar.gz bcm5719-llvm-666a986839118620720171f2065c0061a8d97580.zip | |
Don't clobber CFLAGS_EXTRAS in tests.
To run tests against a different target platform many extra compiler flags are
needed to specify sysroot, include dirs, etc. The environment variable
CFLAGS_EXTRAS seems suited for this purpose except that several Makefiles
clobber the current flags. This change modifies all of these to add to
CFLAGS_EXTRAS instead.
Test Plan:
Verify no regressions in ninja check-lldb.
Run tests using CFLAGS_EXTRAS to specify cross compilation flags for a different
target running lldb-server platform.
Differential Revision: http://reviews.llvm.org/D8559
llvm-svn: 233066
Diffstat (limited to 'lldb/test/python_api')
| -rw-r--r-- | lldb/test/python_api/lldbutil/iter/Makefile | 2 | ||||
| -rw-r--r-- | lldb/test/python_api/lldbutil/process/Makefile | 2 | ||||
| -rw-r--r-- | lldb/test/python_api/module_section/Makefile | 2 | ||||
| -rw-r--r-- | lldb/test/python_api/sbvalue_persist/Makefile | 2 | ||||
| -rw-r--r-- | lldb/test/python_api/value_var_update/Makefile | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/lldb/test/python_api/lldbutil/iter/Makefile b/lldb/test/python_api/lldbutil/iter/Makefile index 3952b1acff1..05135412349 100644 --- a/lldb/test/python_api/lldbutil/iter/Makefile +++ b/lldb/test/python_api/lldbutil/iter/Makefile @@ -1,6 +1,6 @@ LEVEL = ../../../make -CFLAGS_EXTRAS := -D__STDC_LIMIT_MACROS +CFLAGS_EXTRAS += -D__STDC_LIMIT_MACROS ENABLE_THREADS := YES CXX_SOURCES := main.cpp MAKE_DSYM := NO diff --git a/lldb/test/python_api/lldbutil/process/Makefile b/lldb/test/python_api/lldbutil/process/Makefile index 6c249e519d3..93fc28b4ee0 100644 --- a/lldb/test/python_api/lldbutil/process/Makefile +++ b/lldb/test/python_api/lldbutil/process/Makefile @@ -1,6 +1,6 @@ LEVEL = ../../../make -CFLAGS_EXTRAS := -D__STDC_LIMIT_MACROS +CFLAGS_EXTRAS += -D__STDC_LIMIT_MACROS ENABLE_THREADS := YES CXX_SOURCES := main.cpp MAKE_DSYM :=NO diff --git a/lldb/test/python_api/module_section/Makefile b/lldb/test/python_api/module_section/Makefile index 956077500f1..ee74ebae1f4 100644 --- a/lldb/test/python_api/module_section/Makefile +++ b/lldb/test/python_api/module_section/Makefile @@ -1,6 +1,6 @@ LEVEL = ../../make -CFLAGS_EXTRAS := -D__STDC_LIMIT_MACROS +CFLAGS_EXTRAS += -D__STDC_LIMIT_MACROS ENABLE_THREADS := YES CXX_SOURCES := main.cpp b.cpp c.cpp MAKE_DSYM :=NO diff --git a/lldb/test/python_api/sbvalue_persist/Makefile b/lldb/test/python_api/sbvalue_persist/Makefile index 0e5ec65a4fd..e5c7b915073 100644 --- a/lldb/test/python_api/sbvalue_persist/Makefile +++ b/lldb/test/python_api/sbvalue_persist/Makefile @@ -9,7 +9,7 @@ clean: OBJECTS+=no_synth # targets. Other targets do not, which causes this test to fail. # This flag enables FullDebugInfo for all targets. ifneq (,$(findstring clang,$(CC))) - CFLAGS_EXTRAS := -fno-limit-debug-info + CFLAGS_EXTRAS += -fno-limit-debug-info endif include $(LEVEL)/Makefile.rules diff --git a/lldb/test/python_api/value_var_update/Makefile b/lldb/test/python_api/value_var_update/Makefile index 8671fb94802..4b0e5814e3e 100644 --- a/lldb/test/python_api/value_var_update/Makefile +++ b/lldb/test/python_api/value_var_update/Makefile @@ -1,7 +1,7 @@ LEVEL = ../../make C_SOURCES := main.c -CFLAGS_EXTRAS := -std=c99 +CFLAGS_EXTRAS += -std=c99 # See TestHelloWorld.py, which specifies the executable name with a dictionary. EXE := hello_world |

