Win32: Fix sub make commands
`cmd.exe` built-in `cd` does not recognize slashes as path separators, replace to backslashes.
This commit is contained in:
parent
3a2d1feb1e
commit
e109400748
Notes:
git
2024-12-27 08:40:39 +00:00
@ -817,9 +817,9 @@ begin
|
|||||||
if $gnumake == "yes"
|
if $gnumake == "yes"
|
||||||
submake = "$(MAKE) -C $(@D)"
|
submake = "$(MAKE) -C $(@D)"
|
||||||
else
|
else
|
||||||
submake = "cd $(@D) && "
|
submake = ["cd", (sep ? "$(@D:/=#{sep})" : "$(@D)"), "&&"]
|
||||||
config_string("exec") {|str| submake << str << " "}
|
config_string("exec") {|str| submake << str}
|
||||||
submake << "$(MAKE)"
|
submake = (submake << "$(MAKE)").join(" ")
|
||||||
end
|
end
|
||||||
targets.each do |tgt|
|
targets.each do |tgt|
|
||||||
exts.each do |d|
|
exts.each do |d|
|
||||||
|
@ -110,12 +110,14 @@ def self.column
|
|||||||
w
|
w
|
||||||
end
|
end
|
||||||
objext = RbConfig::CONFIG["OBJEXT"]
|
objext = RbConfig::CONFIG["OBJEXT"]
|
||||||
|
sep = RbConfig::CONFIG['BUILD_FILE_SEPARATOR']
|
||||||
|
sep = nil if sep and sep.empty?
|
||||||
if gnumake
|
if gnumake
|
||||||
submake = "$(MAKE) -C $(@D)"
|
submake = "$(MAKE) -C $(@D)"
|
||||||
else
|
else
|
||||||
submake = "cd $(@D) && "
|
submake = ["cd", (sep ? "$(@D:/=#{sep})" : "$(@D)"), "&&"]
|
||||||
exec = RbConfig::CONFIG["exec"] and !exec.empty? and submake << exec << " "
|
exec = RbConfig::CONFIG["exec"] and !exec.empty? and submake << exec
|
||||||
submake << "$(MAKE)"
|
submake = (submake << "$(MAKE)").join(" ")
|
||||||
mflags = " $(MFLAGS)"
|
mflags = " $(MFLAGS)"
|
||||||
end
|
end
|
||||||
-%>
|
-%>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user