Conversation
|
This is missing a magicport.json addition of |
Will do. I am not sure the automatic adding of an object file is the best possible solution, but I don't know a better one so far. I expected some discussion ;-) It works for the usual cases, but there are some downsides to this approach:
|
|
At least it doesn't require any change when using dmd. |
Done. |
|
BTW: if dmd is supposed to also work without $(VCInstallDir)\vcvarsall.bat being run before, the installer will have to detect the UCRT folder and version. This is a bit ugly as it involves reading the registry and finding the newest directory in the UCRT lib/include folder. |
Think I already did that MartinNowak/installer@45790b7 MartinNowak@8af60f3. |
|
Auto-merge toggled on |
|
Auto-merge toggled off |
|
link.d(942): Error: cannot implicitly convert expression (exists(liblegacy)) of type int to bool |
…"stdio_msvc12_64.obj" according to result
|
Rebased and fixed. |
|
Auto-merge toggled on |
|
Still failing. |
|
Auto-merge toggled off |
The druntime lib dir isn't in the libpath, you need to copy the objects to phobos or change the libpath. |
The nicest solution would still be to put both obj files into the library and somehow let dmd tell the linker which one to pick. |
See dlang/druntime#1360. It should be compatible with linking against older VS versions without the changes here, but I'll have to update this PR for VS2015. |
…definitions.lib for VS2015
Updated to work with dlang/druntime#1360 instead. |
|
Auto-merge toggled on |
add "stdio_msvc14_64.obj" or "stdio_msvc12_64.obj" to link command line accordinglyneeds dlang/druntime#1341needs dlang/druntime#1360.