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)
- MSVC, CMake packages with clang toolchain do not build HOT 4
- add_linkorders 循环依赖报错信息不够 HOT 6
- 在vs2022环境下面使用package.tools.cmake的生成的命令无法正确编译 HOT 8
- xmake 尝试使用vcpkg的包出错 HOT 20
- xmake q 失败;而 xmake q -v 成功 HOT 3
- Xmake is not dealing with Q_OBJECT moc properly HOT 2
- 客户环境使用xmake会卡住 HOT 15
- 无法链接qt库 HOT 6
- 批量处理target的定义 HOT 8
- xmake自动生成的 compile_commands.json有问题 HOT 3
- macOS下安装报错 pthread not found HOT 2
- Build error using shared link chain with add_package on Linux after install HOT 3
- xmake windows 的安装包内置 7z 太旧,出现解包出额外的 tar 信息 HOT 6
- Package based on xmake doesn't work when changing output naming HOT 4
- 使用export_list后xmake project -k xcode报错 HOT 1
- PowerShell installation script will fail when the TMP path contains fields in 8.3 format HOT 5
- 指定clang-cl编译器,编译出来的始终是32位程序 HOT 13
- xrepo 命令一直无响应 HOT 21
- bash命令行下的多目标补全失败 & 输入错误目标名不报错 HOT 7
- g++ module .o: No such file or directory HOT 17
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.