aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-24 00:05:47 -0700
committerGraydon Hoare <[email protected]>2011-04-24 00:29:19 -0700
commit0cffc582255dcc45c5097f7e77217cb1509f1c41 (patch)
tree81b1e7087f0ba52f8511358c61b0fe85ba443a5f
parentExpansion of rules to cover stage1, stage2 in more cases. Fix typo in makefile. (diff)
downloadrust-0cffc582255dcc45c5097f7e77217cb1509f1c41.tar.xz
rust-0cffc582255dcc45c5097f7e77217cb1509f1c41.zip
Fix LD_LIBRARY_PATH on STAGE0, STAGE1 defs; define STAGE2.
-rw-r--r--Makefile.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index c34b3bf6..fe591087 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -90,7 +90,7 @@ ifdef CFG_WINDOWSY
CFG_LDPATH :=$(CFG_LDPATH):$(CFG_LLVM_BINDIR)
CFG_LDPATH :=$(CFG_LDPATH):$$PATH
CFG_RUN_TEST=PATH="$(CFG_LDPATH):$(call CFG_EXE_TESTLIB,$(1))" $(1)
- CFG_RUN_TARG=PATH="$(CFG_LDPATH)" $(1)
+ CFG_RUN_TARG=PATH="$(CFG_BUILD_DIR)/$(1):$(CFG_LDPATH)" $(2)
CFG_PATH_MUNGE := $(strip perl -i.bak -p \
-e 's@\\(\S)@/\1@go;' \
@@ -109,7 +109,7 @@ ifdef CFG_UNIXY
CFG_PATH_MUNGE := true
CFG_EXE_SUFFIX :=
CFG_LDPATH :=$(CFG_LDPATH):$(CFG_LLVM_LIBDIR)
- CFG_RUN_TARG=$(CFG_LDENV)=$(CFG_LDPATH) $(1)
+ CFG_RUN_TARG=$(CFG_LDENV)=$(CFG_BUILD_DIR)/$(1):$(CFG_LDPATH) $(2)
CFG_RUN_TEST=\
$(CFG_LDENV)=$(call CFG_TESTLIB,$(1)):$(CFG_LDPATH) \
$(CFG_VALGRIND) $(1)
@@ -121,7 +121,7 @@ ifdef CFG_UNIXY
CFG_LIB_NAME=$(1).dll
CFG_LDPATH :=$(CFG_LDPATH):$(CFG_LLVM_BINDIR)
CFG_LDPATH :=$(CFG_LDPATH):$$PATH
- CFG_RUN_TARG=PATH=$(CFG_LDPATH) $(1)
+ CFG_RUN_TARG=PATH=$(CFG_BUILD_DIR)/$(1):$(CFG_LDPATH) $(2)
CFG_RUN_TEST=PATH=$(CFG_LDPATH):$(call CFG_EXE_TESTLIB,$(1)) $(1)
CFG_INFO := $(info cfg: mingw-cross)
@@ -232,10 +232,12 @@ VPATH := $(S)doc $(S)src
# Compilers we build, we now know how to run.
BOOT := $(Q)OCAMLRUNPARAM="b1" boot/rustboot$(X) $(CFG_BOOT_FLAGS) -L boot
-STAGE0 := $(Q)$(call CFG_RUN_TARG,\
+STAGE0 := $(Q)$(call CFG_RUN_TARG,boot,\
stage0/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage0)
-STAGE1 := $(Q)$(call CFG_RUN_TARG,\
+STAGE1 := $(Q)$(call CFG_RUN_TARG,stage0, \
stage1/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage1)
+STAGE2 := $(Q)$(call CFG_RUN_TARG,stage1, \
+ stage2/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage2)
# "Source" files we generate in builddir along the way.
GENERATED := boot/fe/lexer.ml boot/version.ml