summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-10-31 10:01:30 +0000
committerPavel Labath <labath@google.com>2017-10-31 10:01:30 +0000
commit64325c51ada0d3a49773e530b47d605bb7528314 (patch)
tree3d080d7ff1aea72f2dc3ca2e589e7a0a91549330 /lldb/packages/Python/lldbsuite/test
parent9e58831cb868c59036fcd4d935ef6f08627c4888 (diff)
downloadbcm5719-llvm-64325c51ada0d3a49773e530b47d605bb7528314.tar.gz
bcm5719-llvm-64325c51ada0d3a49773e530b47d605bb7528314.zip
Split makefile for TestTopLevelExprs
this test was using a single makefile to build two executables. This setup, although not supported by Makefile.rules, happened to work in most configurations, except when building with the android ndk r16. Here I move the building of the second executable to a separate makefile, which is the solution other tests use for multiple targets. llvm-svn: 316982
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/top-level/Makefile13
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk6
2 files changed, 13 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/top-level/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/top-level/Makefile
index 7146f227b98..48eec5c5d26 100644
--- a/lldb/packages/Python/lldbsuite/test/expression_command/top-level/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/top-level/Makefile
@@ -1,12 +1,13 @@
LEVEL = ../../make
-default: a.out dummy
-
CXX_SOURCES := main.cpp test.cpp
-dummy: dummy.cpp
+include $(LEVEL)/Makefile.rules
-clean::
- rm -rf dummy dummy.dSYM
+a.out: dummy
-include $(LEVEL)/Makefile.rules
+dummy:
+ $(MAKE) -f dummy.mk
+
+clean::
+ $(MAKE) -f dummy.mk clean
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk b/lldb/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk
new file mode 100644
index 00000000000..af97678b2cf
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk
@@ -0,0 +1,6 @@
+LEVEL = ../../make
+
+CXX_SOURCES := dummy.cpp
+EXE := dummy
+
+include $(LEVEL)/Makefile.rules
OpenPOWER on IntegriCloud