Giter VIP home page Giter VIP logo

Comments (11)

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

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.

waruqi avatar waruqi commented on June 16, 2024

这个 patch 应该可以支持,#5079

不过目前我没低版本 vs ,也许还需要对低版本 vs 做下测试和兼容。。我不确定有些参数,低版本vs是否支持

from xmake.

yecate avatar yecate commented on June 16, 2024

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.

waruqi avatar waruqi commented on June 16, 2024

2005 2008 的 vcvarsall.bat 文件发我看下

from xmake.

yecate avatar yecate commented on June 16, 2024

vcvarsall-2005.txt
vcvarsall-2008.txt

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

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.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

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.

waruqi avatar waruqi commented on June 16, 2024

再试试,我限制了下,仅仅对 2019 开启 host arch 支持

from xmake.

yecate avatar yecate commented on June 16, 2024

功能正常了

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

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.

Issues-translate-bot avatar Issues-translate-bot commented on June 16, 2024

Bot detected the issue body's language is not English, translate it automatically.


Function is normal

from xmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.