[llvm-commits] [dragonegg] r152228 - /dragonegg/trunk/Makefile
Duncan Sands
baldrick at free.fr
Wed Mar 7 05:49:00 PST 2012
Author: baldrick
Date: Wed Mar 7 07:49:00 2012
New Revision: 152228
URL: http://llvm.org/viewvc/llvm-project?rev=152228&view=rev
Log:
Get the current working directory from CURDIR (filled in by make)
rather than PWD (from the environment). This matters with old
buildbots that don't fill in PWD correctly.
Modified:
dragonegg/trunk/Makefile
Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=152228&r1=152227&r2=152228&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Wed Mar 7 07:49:00 2012
@@ -11,7 +11,7 @@
# Location of this Makefile, useful if you want separate source and object
# directories.
-TOP_DIR?=$(PWD)
+TOP_DIR?=$(CURDIR)
# Normally the plugin will refuse to load into a different gcc to the one it was
# built against. Uncomment this (or pass DISABLE_VERSION_CHECK=1 on the 'make'
@@ -117,9 +117,9 @@
$(LIT_SITE_CONFIG): $(TEST_SRC_DIR)/dragonegg-lit.site.cfg.in
@echo "Making DragonEgg '$@' file..."
$(QUIET)mkdir -p test
- $(QUIET)echo s=@DRAGONEGG_PLUGIN@=$(PWD)/$(PLUGIN)=g > lit.tmp
+ $(QUIET)echo s=@DRAGONEGG_PLUGIN@=$(CURDIR)/$(PLUGIN)=g > lit.tmp
$(QUIET)echo s=@GCC@=$(GCC)=g >> lit.tmp
- $(QUIET)echo s=@TEST_OUTPUT_DIR@=$(PWD)/test/Output=g >> lit.tmp
+ $(QUIET)echo s=@TEST_OUTPUT_DIR@=$(CURDIR)/test/Output=g >> lit.tmp
$(QUIET)sed -f lit.tmp $< > $@
$(QUIET)-rm -f lit.tmp
More information about the llvm-commits
mailing list