diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-06-02 17:49:43 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-06-02 17:49:43 +0000 |
commit | 68a7f3c5368dd4b09092f8de39d4f49f102e1e5d (patch) | |
tree | 37cf997a060e67bf2b673dce17903705ea79a778 /Makefile.tests | |
parent | c353772bb6267fa7d72499f471f1fd77ca0d4d46 (diff) |
Allow setting of TARGET_FLAGS on the make command line, as is done for the
nightly test target. Allows using other test targets for ARM more
effectively.
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@105334 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.tests')
-rw-r--r-- | Makefile.tests | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile.tests b/Makefile.tests index a5263b06..6517cd45 100644 --- a/Makefile.tests +++ b/Makefile.tests @@ -18,6 +18,11 @@ DISABLE_AUTO_DEPENDENCIES=1 include ${LEVEL}/Makefile.common +# TARGET_FLAGS can come in from the command line, and tests may add to them, +# so use an internal target name to combine them. Just using += to add to +# TARGET_FLAGS in the TEST.* makefiles doesn't work out. +X_TARGET_FLAGS = $(TARGET_FLAGS) $(TEST_TARGET_FLAGS) + STATS = -stats -time-passes .PHONY: clean default @@ -39,27 +44,27 @@ clean:: # Compile from X.c to Output/X.bc Output/%.bc: %.c $(LCC_PROGRAMS) Output/.dir $(INCLUDES) - -$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(TARGET_FLAGS) -c $< -o $@ -emit-llvm + -$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -c $< -o $@ -emit-llvm # Compile from X.cpp to Output/X.bc Output/%.bc: %.cpp $(LCC_PROGRAMS) Output/.dir $(INCLUDES) - -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(TARGET_FLAGS) -c $< -o $@ -emit-llvm + -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -c $< -o $@ -emit-llvm # Compile from X.cc to Output/X.bc Output/%.bc: %.cc $(LCC_PROGRAMS) Output/.dir $(INCLUDES) - -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(TARGET_FLAGS) -c $< -o $@ -emit-llvm + -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -c $< -o $@ -emit-llvm # Compile from X.C to Output/X.bc Output/%.bc: %.C $(LCC_PROGRAMS) Output/.dir $(INCLUDES) - -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(TARGET_FLAGS) -c $< -o $@ -emit-llvm + -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -c $< -o $@ -emit-llvm # Compile from X.m to Output/X.bc Output/%.bc: %.m $(LCC_PROGRAMS) Output/.dir $(INCLUDES) - -$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(TARGET_FLAGS) -c $< -o $@ -emit-llvm + -$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -c $< -o $@ -emit-llvm # Compile from X.mm to Output/X.bc Output/%.bc: %.mm $(LCC_PROGRAMS) Output/.dir $(INCLUDES) - -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(TARGET_FLAGS) -c $< -o $@ -emit-llvm + -$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -c $< -o $@ -emit-llvm # LLVM Assemble from X.ll to Output/X.bc. Because we are coming directly from # LLVM source, use the non-transforming assembler. |