Comments (11)
Bot detected the issue body's language is not English, translate it automatically.
Title: MSVC uses HOSTX64 toolchain
In what scenario do you need this function?
Compile the x86 debug program. The Hostx86\x86 tool chain is used by default.
When linking a lot of Lib (LLVM), the memory will be exhausted when linking.
Describe possible solutions
Hope to switch to MSVC\14.40.33807\bin\Hostx64\x86 toolchain
Describe your alternatives
No response
other information
No response
from xmake.
这个 patch 应该可以支持,#5079
不过目前我没低版本 vs ,也许还需要对低版本 vs 做下测试和兼容。。我不确定有些参数,低版本vs是否支持
from xmake.
2019/2022 已经正常切换到HostX64
xmake g -c
configure
{
clean = true
proxy_pac = pac.lua
network = public
theme = default
}
xmake f -a x86 -cvD
checking for platform ... windows
checking for vswhere.exe ... C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
checking for cl.exe ... K:\IDE\vs2022\VC\Tools\MSVC\14.40.33807\bin\HostX64\x86\cl.exe
checking for Microsoft Visual Studio (x86) version ... 2022
checking for Microsoft C/C++ Compiler (x86) version ... 19.40.33808
xmake f -a x86 --vs=2019 -cvD
checking for platform ... windows
checking for cl.exe ... C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x86\cl.exe
checking for Microsoft Visual Studio (x86) version ... 2019
但是切换vs 2005/2008/2010 未能正确识别到vs
xmake f -a x86 --vs=2010 -cvD
checking for platform ... windows
checking for cl.exe ... K:\IDE\vs2022\VC\Tools\MSVC\14.40.33807\bin\HostX64\x86\cl.exe
checking for Microsoft Visual Studio (x86) version ... 2022
checking for Microsoft C/C++ Compiler (x86) version ... 19.40.33808
from xmake.
2005 2008 的 vcvarsall.bat 文件发我看下
from xmake.
vcvarsall-2005.txt
vcvarsall-2008.txt
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
This patch should support it, #5079
However, I don’t have a lower version of VS at the moment. Maybe I need to test and make compatibility with the lower version of VS. . I'm not sure whether some parameters are supported by lower version vs.
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Send me the vcvarsall.bat file of 2005 and 2008 for a look.
from xmake.
再试试,我限制了下,仅仅对 2019 开启 host arch 支持
from xmake.
功能正常了
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Try again, I restricted it and only enabled host arch support for 2019.
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
Function is normal
from xmake.
Related Issues (20)
- remote build blocked & distcc does not work HOT 7
- 更好的第三方插件集成 HOT 6
- Add links and package with set_sourcedir HOT 6
- GCC cannot find lua headers on Ubuntu HOT 2
- v2.9.2 单测运行失败问题 HOT 8
- add_files("*.c*") wildcard does not work anymore HOT 11
- add net.http.download timeout HOT 1
- compiler(gcc) does not support c++ module HOT 5
- D Language long arguments support HOT 4
- 支持将文件打组后添加进target中 HOT 5
- 以分支形式 add_package 时希望更新分支最新 commit HOT 5
- 安装支持 xmake 第三方库时无法自动解析 packages、syslinks 等 HOT 3
- 在github action上,传递给cmake参数中,错误使用v144不存在的工具链 HOT 4
- add_requires自定义路径不能使用内置变量 HOT 8
- cant install package due to "error: cannot move source.tmp\o to source Permission denied" HOT 4
- Can not update dependent libraries by xmake. HOT 2
- 希望提供一个全局脚本域做一些处理函数,避免每个 target 重复执行 HOT 3
- 报错日志文件路径没打全,难以定位问题 HOT 9
- 关于 xmake project -k vsxmake 先前生成vs工程文件不会自动更新 HOT 4
- Some general flags should be excluded when fetching packages from cmake HOT 10
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 xmake.