Coder Social home page Coder Social logo

Comments (3)

mstorsjo avatar mstorsjo commented on August 17, 2024

In the tool wrappers, there are two sources of WINEPATH enviroment variables, but both may cause problems:

  1. For nmake, the WINEPATH comes from BINDIR.
    To my understanding, SDKBINDIR should also be included. Otherwise, nmake cannot correctly find rc. You can try to compile putty to regenerate an error that complains about missing rc.

Yes, this is true

  1. For other wrappers, the WINEPATH is exported in msvcenv.sh and is set to $MSVCDIR\bin\Hostx64\x64
    This directory is fixed to Hostx64\x64 regardless of which arch we are targeting. To the best of my knowledge, the folder should depend on the target arch, and it is better to use original directories (SDKBINDIR and BINDIR) instead of the wrapper directories in case that some other exes and dlls are required.

No, this part is actually intentionally the way it is.

For older MSVC versions (2017), the cross compiler dirs (e.g. Hostx64/arm64, or anything other than x64) is missing a bunch of DLLs, e.g. mspdbcore.dll and msvcdis140.dll. So whenever running tools from Hostx64/whatever, Hostx64/x64 is expected to be in the path. Same thing if Hostx86/whatever is used, then Hostx86/x86 would have to be available in the path, for those DLLs to be found.

But I do see that this does conflict a bit with the nmake case. I'd suggest keeping the Hostx64/x64 case last in the path, but adding SDKBINDIR and BINDIR in front of it probably is good.

from msvc-wine.

Cryspia avatar Cryspia commented on August 17, 2024

Thanks for the explanation, the pull request branch has been updated accordingly.

from msvc-wine.

mstorsjo avatar mstorsjo commented on August 17, 2024

This should have been fixed by 438ae37.

from msvc-wine.

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.