Skip to content

Commit 4793f52

Browse files
committed
---
yaml --- r: 1818 b: refs/heads/master c: e696992 h: refs/heads/master v: v3
1 parent 624a9c3 commit 4793f52

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: afa6960338740087b6cacbb9f143430e8acdbea4
2+
refs/heads/master: e6969929db01fca31c66793dfea32ab46f777a48

trunk/Makefile.in

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ ifdef CFG_WINDOWSY
7676
CFG_RUN_TEST=PATH="$(CFG_LDPATH)" $(1)
7777
CFG_RUN_TARG=PATH="$(CFG_LDPATH)" $(1)
7878

79-
CFG_PATH_MUNGE := $(strip perl -i -p \
80-
-e 's@\\(.)@/\1@go;' \
79+
CFG_PATH_MUNGE := $(strip perl -i.bak -p \
80+
-e 's@\\(\S)@/\1@go;' \
8181
-e 's@^/([a-zA-Z])/@\1:/@o;')
8282
ifdef CFG_FLEXLINK
8383
CFG_BOOT_NATIVE := 1
@@ -987,6 +987,7 @@ rt/%.d: rt/%.cpp $(MKFILES)
987987
$(subst $(S)src/,,$(patsubst %.cpp, %.o, $<)), \
988988
$(RUNTIME_INCS)) $< >[email protected]
989989
$(Q)$(CFG_PATH_MUNGE) [email protected]
990+
990991
991992

992993
rustllvm/%.d: rustllvm/%.cpp $(MKFILES)
@@ -995,20 +996,25 @@ rustllvm/%.d: rustllvm/%.cpp $(MKFILES)
995996
$(subst $(S)src/,,$(patsubst %.cpp, %.o, $<)), \
996997
$(CFG_LLVM_CXXFLAGS) $(RUSTLLVM_INCS)) $< >[email protected]
997998
$(Q)$(CFG_PATH_MUNGE) [email protected]
999+
9981000
9991001

10001002
%.d: %.ml $(MKFILES)
10011003
@$(call E, dep: $@)
10021004
$(Q)ocamldep$(OPT) -slash $(BOOT_ML_DEP_INCS) $< >$@.tmp
10031005
$(Q)$(CFG_PATH_MUNGE) $@.tmp
1004-
$(Q)perl -i -pe "s@$(S)src/@@go" $@.tmp
1006+
$(Q)rm -f $@.tmp.bak
1007+
$(Q)perl -i.bak -pe "s@$(S)src/@@go" $@.tmp
1008+
$(Q)rm -f $@.tmp.bak
10051009
$(Q)mv $@.tmp $@
10061010

10071011
%.d: %.mli $(MKFILES)
10081012
@$(call E, dep: $@)
10091013
$(Q)ocamldep$(OPT) -slash $(BOOT_ML_DEP_INCS) $< >$@.tmp
10101014
$(Q)$(CFG_PATH_MUNGE) $@.tmp
1011-
$(Q)perl -i -pe "s@$(S)src/@@go" $@.tmp
1015+
$(Q)rm -f $@.tmp.bak
1016+
$(Q)perl -i.bak -pe "s@$(S)src/@@go" $@.tmp
1017+
$(Q)rm -f $@.tmp.bak
10121018
$(Q)mv $@.tmp $@
10131019

10141020
ifneq ($(MAKECMDGOALS),clean)
@@ -1029,19 +1035,22 @@ boot/$(CFG_STDLIB).d: $(STDLIB_CRATE) $(STDLIB_INPUTS) \
10291035
@$(call E, dep: $@)
10301036
$(BOOT) -o $(patsubst %.d,%,$@) -shared -rdeps $< >[email protected]
10311037
$(Q)$(CFG_PATH_MUNGE) [email protected]
1038+
10321039
10331040

10341041
stage0/rustc$(X).d: $(COMPILER_CRATE) $(COMPILER_INPUTS) \
10351042
$(STDLIB_CRATE) $(MKFILES) boot/rustboot$(X)
10361043
@$(call E, dep: $@)
10371044
$(BOOT) -o $(patsubst %.d,%,$@) -shared -rdeps $< >[email protected]
10381045
$(Q)$(CFG_PATH_MUNGE) [email protected]
1046+
10391047
10401048

10411049
%.d: %.rc $(MKFILES) boot/rustboot$(X)
10421050
@$(call E, dep: $@)
10431051
$(BOOT) -o $(patsubst %.d,%,$@) -rdeps $< >$@.tmp
10441052
$(Q)$(CFG_PATH_MUNGE) $@.tmp
1053+
$(Q)rm -f $@.tmp.bak
10451054
$(Q)mv $@.tmp $@
10461055

10471056
ifneq ($(MAKECMDGOALS),clean)
@@ -1149,5 +1158,5 @@ clean:
11491158
bc o s exe dSYM, \
11501159
$(wildcard test/*/*.$(ext) test/bench/*/*.$(ext)))
11511160
$(Q)rm -Rf $(foreach ext, \
1152-
aux cp fn ky log pdf html pg toc tp vr cps texi \
1161+
aux cp fn ky log pdf html pg toc tp vr cps texi, \
11531162
$(wildcard doc/*.$(ext)))

trunk/configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ putvar CFG_LLVM_CXXFLAGS
179179
putvar CFG_LLVM_LDFLAGS
180180
putvar CFG_LLVM_LIBS
181181

182+
# Munge any paths that appear in config.mk back to posix-y
183+
perl -i.bak -p -e 's@ ([a-zA-Z]):\\@ /\1/@go;' \
184+
-e 's@\\@/@go;' config.mk
185+
rm -f config.mk.bak
186+
182187
copy ${CFG_SRC_DIR}Makefile.in ./Makefile
183188

184189
echo "configure: complete"

0 commit comments

Comments
 (0)