[PATCH] building lnt tools to test cross-compiling
robert lytton
robert at xmos.com
Thu Feb 13 07:36:29 PST 2014
Hi rafael,
Hi
At present LNT builds the tools 'timeit' & 'timeit-target'.
However, it seems only one will be used, depending if USER_MODE_EMULATION as be defined or not viz:
Makefile.rules
TIMEIT = $(PROJ_OBJ_ROOT)/tools/timeit
TIMEIT_TARGET = $(PROJ_OBJ_ROOT)/tools/timeit-target
Makefile.programs
ifdef USER_MODE_EMULATION
RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT)"
else
RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT_TARGET)"
endif
The patch is needed as the unused 'timeit-target' won't build when passed the $(TARGET_FLAGS) for xcore, causing an error.
Thank you
Robert
http://llvm-reviews.chandlerc.com/D2766
Files:
tools/Makefile
Index: tools/Makefile
===================================================================
--- tools/Makefile
+++ tools/Makefile
@@ -1,7 +1,11 @@
LEVEL=..
include $(LEVEL)/Makefile.programs
-all:: timeit timeit-target fpcmp TargetConfig.mk
+ifdef USER_MODE_EMULATION
+all:: timeit fpcmp TargetConfig.mk
+else
+all:: timeit-target fpcmp TargetConfig.mk
+endif
timeit: timeit.c
$(ORIGINAL_CC) $(CFLAGS) -O3 -o $@ $<
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2766.1.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/29d6002a/attachment.bin>
More information about the llvm-commits
mailing list