[llvm-commits] [dragonegg] r171744 - /dragonegg/trunk/Makefile
Duncan Sands
baldrick at free.fr
Mon Jan 7 07:23:49 PST 2013
Author: baldrick
Date: Mon Jan 7 09:23:49 2013
New Revision: 171744
URL: http://llvm.org/viewvc/llvm-project?rev=171744&view=rev
Log:
Only execute llvm-config when needed, previously it was being executed always in
order to set PYTHONPATH. For example, running "make clean" required llvm-config
even though it made no use of the output.
Modified:
dragonegg/trunk/Makefile
Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=171744&r1=171743&r2=171744&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Mon Jan 7 09:23:49 2013
@@ -108,7 +108,7 @@
LIT_SITE_CONFIG=test/dragonegg-lit.site.cfg
TEST_SRC_DIR=$(TOP_DIR)/test
-export PYTHONPATH:=$(TEST_SRC_DIR):$(LIT_DIR)/lit:$(PYTHONPATH)
+PYPATH=$(TEST_SRC_DIR):$(LIT_DIR)/lit:$(PYTHONPATH)
default: gcc-sane llvm-config-sane $(PLUGIN)
@@ -162,13 +162,13 @@
.PHONY: check-compilator
check-compilator: $(PLUGIN) $(LIT_SITE_CONFIG)
@echo "Running test suite 'compilator'"
- $(QUIET)$(LIT_DIR)/lit.py $(LIT_ARGS) --param site="$(LIT_SITE_CONFIG)" \
+ $(QUIET)PYTHONPATH=$(PYPATH) $(LIT_DIR)/lit.py $(LIT_ARGS) --param site="$(LIT_SITE_CONFIG)" \
--config-prefix=compilator-lit $(TEST_SRC_DIR)/compilator
.PHONY: check-validator
check-validator: $(PLUGIN) $(LIT_SITE_CONFIG)
@echo "Running test suite 'validator'"
- $(QUIET)$(LIT_DIR)/lit.py $(LIT_ARGS) --param site="$(LIT_SITE_CONFIG)" \
+ $(QUIET)PYTHONPATH=$(PYPATH) $(LIT_DIR)/lit.py $(LIT_ARGS) --param site="$(LIT_SITE_CONFIG)" \
--config-prefix=validator-lit $(TEST_SRC_DIR)/validator
.PHONY: check
More information about the llvm-commits
mailing list