Changes in directory llvm-test:
Makefile.programs updated: 1.249 -> 1.250 --- Log message: Add a new feature; USE_REFERENCE_OUTPUT. This allows a directory to opt for providing its own reference output instead of generating it with the gcc compiler. This is useful in cases where the gcc compiler is known to not produce the correct results. --- Diffs of the changes: (+10 -0) Makefile.programs | 10 ++++++++++ 1 files changed, 10 insertions(+) Index: llvm-test/Makefile.programs diff -u llvm-test/Makefile.programs:1.249 llvm-test/Makefile.programs:1.250 --- llvm-test/Makefile.programs:1.249 Fri Jan 12 09:48:07 2007 +++ llvm-test/Makefile.programs Tue Jan 16 14:25:51 2007 @@ -368,10 +368,12 @@ # Rules to build the test output... ifndef USE_PRECOMPILED_BYTECODE +ifndef USE_REFERENCE_OUTPUT $(PROGRAMS_TO_TEST:%=Output/%.out-nat): \ Output/%.out-nat: Output/%.native -$(RUNSAFELY) $(STDIN_FILENAME) $@ $< $(RUN_OPTIONS) endif +endif $(PROGRAMS_TO_TEST:%=Output/%.out-lli): \ Output/%.out-lli: Output/%.llvm.bc $(LLI) @@ -581,6 +583,14 @@ $(PROGRAMS_TO_TEST:%=Output/%.LOC.txt): \ Output/%.LOC.txt: $(SRCDIR)/%.LOC.txt Output/.dir cp $< $@ +else +ifdef USE_REFERENCE_OUTPUT +# In this case, we opt out of generating the native output and just +# copy it from a reference output +$(PROGRAMS_TO_TEST:%=Output/%.out-nat): \ +Output/%.out-nat: $(PROJ_SRC_DIR)/%.reference_output Output/.dir + cp $< $@ +endif endif # Support for the TEST= option... when TEST= is specified on the command line, _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits