[Lldb-commits] [lldb] r316982 - Split makefile for TestTopLevelExprs
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 31 03:01:30 PDT 2017
Author: labath
Date: Tue Oct 31 03:01:30 2017
New Revision: 316982
URL: http://llvm.org/viewvc/llvm-project?rev=316982&view=rev
Log:
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.
Added:
lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk
Modified:
lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/Makefile
Modified: lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/Makefile?rev=316982&r1=316981&r2=316982&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/Makefile Tue Oct 31 03:01:30 2017
@@ -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
Added: lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk?rev=316982&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/dummy.mk Tue Oct 31 03:01:30 2017
@@ -0,0 +1,6 @@
+LEVEL = ../../make
+
+CXX_SOURCES := dummy.cpp
+EXE := dummy
+
+include $(LEVEL)/Makefile.rules
More information about the lldb-commits
mailing list