@@ -76,8 +76,8 @@ ifdef CFG_WINDOWSY
76
76
CFG_RUN_TEST=PATH ="$(CFG_LDPATH ) " $(1 )
77
77
CFG_RUN_TARG=PATH ="$(CFG_LDPATH ) " $(1 )
78
78
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;' \
81
81
-e 's@^/([a-zA-Z])/@\1:/@o;')
82
82
ifdef CFG_FLEXLINK
83
83
CFG_BOOT_NATIVE := 1
@@ -987,6 +987,7 @@ rt/%.d: rt/%.cpp $(MKFILES)
987
987
$(subst $(S)src/,,$(patsubst %.cpp, %.o, $<)), \
988
988
$(RUNTIME_INCS)) $< >
[email protected]
989
989
$(Q)$(CFG_PATH_MUNGE)
[email protected]
990
+
990
991
991
992
992
993
rustllvm/% .d : rustllvm/% .cpp $(MKFILES )
@@ -995,20 +996,25 @@ rustllvm/%.d: rustllvm/%.cpp $(MKFILES)
995
996
$(subst $(S)src/,,$(patsubst %.cpp, %.o, $<)), \
996
997
$(CFG_LLVM_CXXFLAGS) $(RUSTLLVM_INCS)) $< >
[email protected]
997
998
$(Q)$(CFG_PATH_MUNGE)
[email protected]
999
+
998
1000
999
1001
1000
1002
% .d : % .ml $(MKFILES )
1001
1003
@$(call E, dep: $@ )
1002
1004
$(Q ) ocamldep$(OPT ) -slash $(BOOT_ML_DEP_INCS ) $< > $@ .tmp
1003
1005
$(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
1005
1009
$(Q ) mv $@ .tmp $@
1006
1010
1007
1011
% .d : % .mli $(MKFILES )
1008
1012
@$(call E, dep: $@ )
1009
1013
$(Q ) ocamldep$(OPT ) -slash $(BOOT_ML_DEP_INCS ) $< > $@ .tmp
1010
1014
$(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
1012
1018
$(Q ) mv $@ .tmp $@
1013
1019
1014
1020
ifneq ($(MAKECMDGOALS ) ,clean)
@@ -1029,19 +1035,22 @@ boot/$(CFG_STDLIB).d: $(STDLIB_CRATE) $(STDLIB_INPUTS) \
1029
1035
@$(call E, dep: $@)
1030
1036
$(BOOT) -o $(patsubst %.d,%,$@) -shared -rdeps $< >
[email protected]
1031
1037
$(Q)$(CFG_PATH_MUNGE)
[email protected]
1038
+
1032
1039
1033
1040
1034
1041
stage0/rustc$(X ) .d : $(COMPILER_CRATE ) $(COMPILER_INPUTS ) \
1035
1042
$(STDLIB_CRATE) $(MKFILES) boot/rustboot$(X)
1036
1043
@$(call E, dep: $@)
1037
1044
$(BOOT) -o $(patsubst %.d,%,$@) -shared -rdeps $< >
[email protected]
1038
1045
$(Q)$(CFG_PATH_MUNGE)
[email protected]
1046
+
1039
1047
1040
1048
1041
1049
% .d : % .rc $(MKFILES ) boot/rustboot$(X )
1042
1050
@$(call E, dep: $@ )
1043
1051
$(BOOT ) -o $(patsubst % .d,% ,$@ ) -rdeps $< > $@ .tmp
1044
1052
$(Q )$(CFG_PATH_MUNGE ) $@ .tmp
1053
+ $(Q ) rm -f $@ .tmp.bak
1045
1054
$(Q ) mv $@ .tmp $@
1046
1055
1047
1056
ifneq ($(MAKECMDGOALS ) ,clean)
@@ -1149,5 +1158,5 @@ clean:
1149
1158
bc o s exe dSYM, \
1150
1159
$(wildcard test/*/*.$(ext) test/bench/*/*.$(ext)))
1151
1160
$(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, \
1153
1162
$(wildcard doc/*.$(ext)))
0 commit comments