[PATCH] building lnt tools to test cross-compiling
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Feb 13 07:37:38 PST 2014
On 13 February 2014 10:36, robert lytton <robert at xmos.com> wrote:
> 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.
What is the error? Maybe we could fix it?
> 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 $@ $<
More information about the llvm-commits
mailing list