Comments (8)
lld-link, llvm-lib and llvm-rc can be enabled by change following properties to true:
in LLVM.Common.props or generated project file.
<UseClangCl>true</UseClangCl>
<UseLldLink>false</UseLldLink>
<UseLlvmLib>false</UseLlvmLib>
<UseLlvmRc>false</UseLlvmRc>
from llvm-utils.
for BuildTools, can you test whether following script works or not? it's based on microsoft/vswhere#22 (comment)
@rem Visual Studio 2019 Build Tools
FOR /f "delims=" %%A IN ('"%VSWHERE%" -products "Microsoft.VisualStudio.Product.BuildTools" -property installationPath -prerelease -version [16.0^,17.0^)') DO (
SET VCT_PATH=%%A\MSBuild\Microsoft\VC\v160\Platforms
IF EXIST "!VCT_PATH!" CALL :SUB_VS2019 "!VCT_PATH!"
@rem Visual C++ 2017 v141 toolset
SET VCT_PATH=%%A\MSBuild\Microsoft\VC\v150\Platforms
IF EXIST "!VCT_PATH!" CALL :SUB_VS2017 "!VCT_PATH!" 2019
)
from llvm-utils.
its very strange, the tool would output the right string, but the script will complain that 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
It does work as intended if I remove the quotes around Microsoft.VisualStudio.Product.BuildTools
H:\>"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -products "Microsoft.VisualStudio.Product.BuildTools" -property installationPath -prerelease -version [16.0^,17.0^)
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
from llvm-utils.
lld-link, llvm-lib and llvm-rc can be enabled by change following properties to true:
in LLVM.Common.props or generated project file.
<UseClangCl>true</UseClangCl> <UseLldLink>false</UseLldLink> <UseLlvmLib>false</UseLlvmLib> <UseLlvmRc>false</UseLlvmRc>
Ok, so i need to either do that globally or use a GUI that I dont have?
Probably A missing feature in CMake to be able to set target props?
from llvm-utils.
its very strange, the tool would output the right string, but the script will complain that
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
It does work as intended if I remove the quotes around
Microsoft.VisualStudio.Product.BuildTools
H:\>"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -products "Microsoft.VisualStudio.Product.BuildTools" -property installationPath -prerelease -version [16.0^,17.0^) C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
Thanks for the testing, I means add the script into https://github.com/zufuliu/llvm-utils/blob/master/VS2017/install.bat#L24 (before IF %SUCCESS% == 0
)
@rem Visual Studio 2019 Build Tools
FOR /f "delims=" %%A IN ('"%VSWHERE%" -products "Microsoft.VisualStudio.Product.BuildTools" -property installationPath -prerelease -version [16.0^,17.0^)') DO (
SET VCT_PATH=%%A\MSBuild\Microsoft\VC\v160\Platforms
IF EXIST "!VCT_PATH!" CALL :SUB_VS2019 "!VCT_PATH!"
@rem Visual C++ 2017 v141 toolset
SET VCT_PATH=%%A\MSBuild\Microsoft\VC\v150\Platforms
IF EXIST "!VCT_PATH!" CALL :SUB_VS2017 "!VCT_PATH!" 2019
)
from llvm-utils.
Yes i did that. But it only works if I remove the quotes, maybe the CMD processor dies something stupid like matching the last double quote?
You should get the same error msg
@rem Visual Studio 2019 Build Tools
FOR /f "delims=" %%A IN ('"%VSWHERE%" -products Microsoft.VisualStudio.Product.BuildTools -property installationPath -prerelease -version [16.0^,17.0^)') DO (
SET VCT_PATH=%%A\MSBuild\Microsoft\VC\v160\Platforms
IF EXIST "!VCT_PATH!" CALL :SUB_VS2019 "!VCT_PATH!"
@rem Visual C++ 2017 v141 toolset
SET VCT_PATH=%%A\MSBuild\Microsoft\VC\v150\Platforms
IF EXIST "!VCT_PATH!" CALL :SUB_VS2017 "!VCT_PATH!" 2019
)
from llvm-utils.
Tested other product ids from https://docs.microsoft.com/en-us/visualstudio/install/workload-and-component-ids, without quotes indeed works, committed changes to install.bat as 59932b8.
For CMake, you can changed LLVM.Common.props locally, and test whether lld-link, llvm-lib and llvm-rc works for you projects. unlike clang-cl, these tools are not very compatible with corresponding msvc tools, or not works as expected (e.g. LTO with MSBuild VC project not works).
from llvm-utils.
Thanks
from llvm-utils.
Related Issues (10)
- LibraryPath + IncludePath HOT 1
- Multiprocess compile HOT 8
- CMake uses wrong compiler for detection. HOT 6
- choco install llvm-utils HOT 2
- Generated solution does not recompile modified files HOT 3
- Rename the master branch to main HOT 1
- The specified task executable location "bin\clang-cl.exe" is invalid. HOT 3
- Example for CI builds HOT 2
- Visual Studio fails to respond to disable/enable select code paths with Preprocessor __clang__ and/or __llvm__ HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-utils.