[PATCH] building lnt tools to test cross-compiling

robert lytton robert at xmos.com
Fri Feb 14 11:16:29 PST 2014


  Hi Daniel,
  Yes, much cleaner
  Robert

Hi rafael, ddunbar,

http://llvm-reviews.chandlerc.com/D2766

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D2766?vs=7093&id=7137#toc

Files:
  tools/Makefile

Index: tools/Makefile
===================================================================
--- tools/Makefile
+++ tools/Makefile
@@ -1,7 +1,12 @@
 LEVEL=..
 include $(LEVEL)/Makefile.programs
 
-all:: timeit timeit-target fpcmp TargetConfig.mk
+all:: timeit fpcmp TargetConfig.mk
+
+# Avoid depending on timeit-target if it is not needed, some targets that use emulation cannot build it.
+ifndef USER_MODE_EMULATION
+all:: timeit-target
+endif
 
 timeit: timeit.c
 	$(ORIGINAL_CC) $(CFLAGS) -O3 -o $@ $<
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2766.3.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140214/f06514c5/attachment.bin>


More information about the llvm-commits mailing list