[llvm-commits] [test-suite] r130142 - in /test-suite/trunk: Makefile.config.in tools/Makefile

Daniel Dunbar daniel at zuster.org
Mon Apr 25 13:05:08 PDT 2011


Author: ddunbar
Date: Mon Apr 25 15:05:08 2011
New Revision: 130142

URL: http://llvm.org/viewvc/llvm-project?rev=130142&view=rev
Log:
build: Add support for building a version of the 'timeit' tool which will run on
the target.

Modified:
    test-suite/trunk/Makefile.config.in
    test-suite/trunk/tools/Makefile

Modified: test-suite/trunk/Makefile.config.in
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.config.in?rev=130142&r1=130141&r2=130142&view=diff
==============================================================================
--- test-suite/trunk/Makefile.config.in (original)
+++ test-suite/trunk/Makefile.config.in Mon Apr 25 15:05:08 2011
@@ -71,6 +71,9 @@
 SourceDir=$(PROJ_SRC_DIR)
 endif
 
+ORIGINAL_CC := $(CC)
+ORIGINAL_CXX := $(CC)
+
 ifdef TARGET_ARCH
 ARCH := $(TARGET_ARCH)
 endif

Modified: test-suite/trunk/tools/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/tools/Makefile?rev=130142&r1=130141&r2=130142&view=diff
==============================================================================
--- test-suite/trunk/tools/Makefile (original)
+++ test-suite/trunk/tools/Makefile Mon Apr 25 15:05:08 2011
@@ -1,10 +1,16 @@
 LEVEL=..
 include $(LEVEL)/Makefile.programs
 
-all:: timeit fpcmp
+all:: timeit timeit-target fpcmp
 
 timeit: timeit.c
-	$(CC) $(CFLAGS) -O3 -o $@ $<
+	$(ORIGINAL_CC) $(CFLAGS) -O3 -o $@ $<
+
+timeit-target: timeit.c
+	$(LD_ENV_OVERRIDES) $(LCC) -o $@ $< $(LDFLAGS) $(CFLAGS) $(TARGET_FLAGS) -O3
 
 fpcmp: fpcmp.c
-	$(CC) $(CFLAGS) -O3 -o $@ $<
+	$(ORIGINAL_CC) $(CFLAGS) -O3 -o $@ $<
+
+clean::
+	rm -f timeit timeit-target fpcmp





More information about the llvm-commits mailing list