MSBuild Integration files for drop-selecting LLVM as a toolchain in Visual Studio

Aaron Ballman aaron at aaronballman.com
Tue Aug 27 15:26:58 PDT 2013


On Tue, Aug 27, 2013 at 6:16 PM, Reid Kleckner <rnk at google.com> wrote:
> It seems reasonable for these to have DOS line endings.  Do they need to
> have a BOM, though?
>
> +    <ClangInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\LLVM\LLVM
> 3.4.svn)</ClangInstallDir>
>
> Should this be looking for "LLVM 3.4.svn" specifically, or is there a way to
> be more generic?
>
> +
> <ExecutablePath>$(ClangInstallDir)\bin;$(ExecutablePath)</ExecutablePath>
>
> We should probably add a new directory like msbuild-bin instead, since we
> really don't want to place a clang binary named cl.exe into bin/.
>
>
>
> On Tue, Aug 27, 2013 at 3:05 PM, Warren Hunt <whunt at google.com> wrote:
>>
>> Attached is a patch with the requisite files to integrate a
>> drop-selectable llvm tool-chain in Visual Studio.  The files need to be
>> copied to:
>>
>> C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\llvm
>> on a 64 bit machine
>>
>> or
>>
>> C:\Program
>> Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\llvm
>> on a 32 bit machine
>>
>> or wherever MSBuild is installed.  This information can be obtained from
>> the registry if desired.

Would it make sense for us to add something to automatically perform
the copy for the user?

> +    <WindowsSdkDir Condition="'$(UseEnv)' != 'true'">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A at InstallationFolder)</WindowsSdkDir>
> +    <WindowsSdkDir Condition="'$(WindowsSdkDir)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v7.0A at InstallationFolder)</WindowsSdkDir>

What about SDK dirs other than 7.0A?

~Aaron



More information about the llvm-commits mailing list