[llvm-commits] [test-suite] r173091 - /test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile

Michael Gottesman mgottesman at apple.com
Mon Jan 21 13:13:09 PST 2013


Author: mgottesman
Date: Mon Jan 21 15:13:08 2013
New Revision: 173091

URL: http://llvm.org/viewvc/llvm-project?rev=173091&view=rev
Log:
This test fixes the special compile rules for 7zip so that .bc files can be properly compiled if they are a target.

This fixes 'make TEST=profile'. Patch by Alastair Murray.

Modified:
    test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile

Modified: test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile?rev=173091&r1=173090&r2=173091&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile (original)
+++ test-suite/trunk/MultiSource/Benchmarks/7zip/Makefile Mon Jan 21 15:13:08 2013
@@ -262,6 +262,12 @@
 Output/%.llvm.o: $(1)/%.cpp Output/.dir
 	$$(RUNSAFELYLOCAL) /dev/null $$@.compile \
 	  $$(LCXX) $$(CPPFLAGS) $$(CXXFLAGS) $$(OPTFLAGS) $$(TARGET_FLAGS) -c $$< -o $$@
+Output/%.bc: $(1)/%.c Output/.dir
+	$$(RUNSAFELYLOCAL) /dev/null $$@.compile \
+	  $$(LCC) $$(CPPFLAGS) $$(CFLAGS) $$(OPTFLAGS) $$(TARGET_FLAGS) -emit-llvm -c $$< -o $$@
+Output/%.bc: $(1)/%.cpp Output/.dir
+	$$(RUNSAFELYLOCAL) /dev/null $$@.compile \
+	  $$(LCXX) $$(CPPFLAGS) $$(CXXFLAGS) $$(OPTFLAGS) $$(TARGET_FLAGS) -emit-llvm -c $$< -o $$@
 endef
 
 $(foreach dir,$(SUBDIRS),$(eval $(call SUBDIR_template,$(PROJ_SRC_DIR)/$(dir))))





More information about the llvm-commits mailing list