Weird compiler

ZombineDev via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 19 11:18:16 PDT 2016


On Sunday, 19 June 2016 at 18:04:52 UTC, ZombineDev wrote:
> On Sunday, 19 June 2016 at 16:24:53 UTC, mogu wrote:
>> On Sunday, 19 June 2016 at 15:06:40 UTC, David Nadlinger wrote:
>>> On Sunday, 19 June 2016 at 14:05:22 UTC, mogu wrote:
>>>> It's awful that I compile a little 64bit program(or 
>>>> -m32mscoff) in windows must have visual studio which has 
>>>> tremendous size installed even though I only need a linker. 
>>>> It's weird that a compiler compiles to binary targets needs 
>>>> another compiler or tools. Sigh.
>>>
>>> Microsoft now releases the Visual C++ Build Tools separately, 
>>> which contain their C++ toolchain without the IDE parts 
>>> (https://blogs.msdn.microsoft.com/vcblog/2016/03/31/announcing-the-official-release-of-the-visual-c-build-tools-2015/).
>>>
>>>  — David
>>
>> I just tested. After the build tools 2015 installed, DMD 
>> installer says "no compatible version(MSVC or SDK) founded, Do 
>> you want to install VS2013?".
>
> Visual Studio / Windows SDK is detected by DMD only at 
> install-time.
> If you re-install DMD, it should detect the location of the VS 
> tools.
> If that doesn't work, you can always edit the config file 
> yourself (sc.ini which is somewhere in the DMD install dir).

Sorry, I didn't fully read your message. It looks [1] the 
installer doesn't yet know how to handle the VS Build Tools. If 
you look at the installer code, you'll see that all it does to 
sc.ini is filling in these paths:
https://github.com/dlang/dmd/blob/master/ini/windows/bin/sc.ini#L99 . If you set the paths yourself it should work.


[1]: 
https://github.com/dlang/installer/blob/master/windows/d2-installer.nsi


More information about the Digitalmars-d mailing list