Bug 10229 – RDMD: --compiler flag doesn't work properly when not adding .exe on win32
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2013-06-01T08:00:00Z
Last change time
2013-06-06T16:18:24Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2013-06-01T08:00:12Z
While trying to use "dmd_msc" as the compiler (DMD built with Visual Studio):
test.d:
-----
module test;
import std.stdio;
unittest
{
assert(0);
}
void main()
{
writeln("here");
}
-----
$ rdmd --chatty --force -unittest --compiler=dmd_msc test.d
It then spits out these and just exits:
-----
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-1648EF87D7393B7077F5EA9F7EC96F7F
"dmd_msc" "-v" "-o-" "test.d" "-I."
read C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-1648EF87D7393B7077F5EA9F7EC96F7F\rdmd.deps
stat C:\Windows\System32\dmd_msc
stat F:\path\dmd_msc
stat C:\Program Files (x86)\Windows Resource Kits\Tools\dmd_msc
stat %SystemRoot%\system32\dmd_msc
stat %SystemRoot%\dmd_msc
stat %SystemRoot%\System32\Wbem\dmd_msc
stat %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\dmd_msc
stat C:\Program Files\Microsoft Windows Performance Toolkit\dmd_msc
stat C:\Program Files (x86)\Gtk-Runtime\bin\dmd_msc
stat C:\Program Files (x86)\GtkSharp\2.12\bin\dmd_msc
stat C:\Program Files (x86)\dub\dmd_msc
stat C:\dmd-git\dmd2\src\dmd_msc
stat C:\Program Files (x86)\FLAC\dmd_msc
stat C:\dmd-git\dmd2\windows\bin\dmd_msc
stat C:\DMD\dmd2\windows\bin\dmd_msc
stat C:\dm\bin\dmd_msc
stat C:\MinGW\bin\dmd_msc
stat D:\Apps\Console2\dmd_msc
stat D:\Program Files\GnuWin32\bin\dmd_msc
stat C:\Program Files (x86)\IrfanView\dmd_msc
-----
But if I add an .exe extension, it will work:
$ rdmd --chatty --force --compiler=dmd_msc.exe test.d
-----
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5
"dmd_msc.exe" "-unittest" "-v" "-o-" "test.d" "-I."
read C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\rdmd.dep
s
stat C:\Windows\System32\dmd_msc.exe
stat F:\path\dmd_msc.exe
stat C:\Program Files (x86)\Windows Resource Kits\Tools\dmd_msc.exe
stat %SystemRoot%\system32\dmd_msc.exe
stat %SystemRoot%\dmd_msc.exe
stat %SystemRoot%\System32\Wbem\dmd_msc.exe
stat %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\dmd_msc.exe
stat C:\Program Files\Microsoft Windows Performance Toolkit\dmd_msc.exe
stat C:\Program Files (x86)\Gtk-Runtime\bin\dmd_msc.exe
stat C:\Program Files (x86)\GtkSharp\2.12\bin\dmd_msc.exe
stat C:\Program Files (x86)\dub\dmd_msc.exe
stat C:\dmd-git\dmd2\src\dmd_msc.exe
stat C:\Program Files (x86)\FLAC\dmd_msc.exe
stat C:\dmd-git\dmd2\windows\bin\dmd_msc.exe
"dmd_msc.exe" "-unittest" "-ofC:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C96
1E500FA1600300A5\test.exe" "-odC:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C9
61E500FA1600300A5\objs" "-I." "test.d"
stat C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\objs
rmdirRecurse C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\
objs
"C:\Users\ADMINI~1\AppData\Local\Temp\.rdmd\rdmd-test.d-4480389CE04A3C961E500FA1600300A5\test.exe"
core.exception.AssertError@test(7): unittest failure
----------------
0x0040914D
0x0040201A
0x0040B38F
0x00407271
0x00405B00
0x74F933CA in BaseThreadInitThunk
0x773E9ED2 in RtlInitializeExceptionChain
0x773E9EA5 in RtlInitializeExceptionChain
C:\dev\code\d_code>
-----