[cfe-dev] Linking in clang on Windows

Hans Wennborg hans at chromium.org
Wed Oct 9 17:26:03 PDT 2013


On Wed, Oct 9, 2013 at 4:19 PM, Edward Diener
<eldlistmailingz at tropicsoft.com> wrote:
> On 10/9/2013 4:13 PM, Hans Wennborg wrote:
>>
>> On Wed, Oct 9, 2013 at 12:41 PM, Edward Diener
>> <eldlistmailingz at tropicsoft.com> wrote:
>>>
>>> Using clang on Windows what program is supposed to be called to do the
>>> link
>>> step after compilation ?
>>
>>
>> One has to use the link.exe that comes with Visual Studio.
>
>
> And how does clang find that link.exe on Windows ? Is it expected that the
> end-user must put it somewhere on his PATH ? Is the end-user supposed to be
> running clang from the command line within a VC++ CoMmand Prompt (
> vcvarsall.bat setup ) ?

Yes, that's the best way to run it currently.

> BTW is there any documentation anywhere on a web page about running clang on
> Windows ?

I have a patch that adds documentation about clang-cl. It should land today.

Thanks,
Hans



More information about the cfe-dev mailing list