Use OBJSUFFIX of .obj for ldc2 on Windows.

This commit is contained in:
josh committed 2019-08-26 19:10:19 -04:00
1 parent eb54a2b64a
commit 044ee343ca
2 files changed
+13 -9

No files matched your search

+4
View File
@@ -481,6 +481,10 @@ module Rscons
"LDCMD" => env["LDCMD"].map {|e| if e == "-o"; "-of"; else; e; end},
"DDEPGEN" => ["-deps=${_DEPFILE}"],
}
if RUBY_PLATFORM =~ /mingw/
# ldc2 on Windows expect an object file suffix of .obj.
merge["OBJSUFFIX"] = %w[.obj]
end
end
_, _, status = log_and_test_command(command)
if status == 0