Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for specifying the Platform Toolset to PCbuild/build.bat #121

Merged
merged 3 commits into from
Sep 8, 2019

Conversation

arizvisa
Copy link
Contributor

@arizvisa arizvisa commented Sep 5, 2019

This adds a new parameter to PCbuild/build.bat which exposes setting the Platform Toolset property for msbuild to link with. It appears you can simply set the "-property" parameter already, but this exposes it so that it's a hella more obvious. Originally, python/tauthon was using v90 so the default value for this property was also set to the same value. This way it should work the same way it did originally prior to the addition.

I also had to modify PCbuild/env.bat a little bit. It turns out that this script already attempted to determine the path to vcvarsall.bat using $VS90COMNTOOLS. It would run vcvarsall.bat from Visual Studio 9.0 first, and then include any others that it could so that way Visual Studio 9.0 was mandatory. This removes that mandatory-ness since we're using the newer version of Visual Studio anyways.

I added the parameter as a long-parameter, "--platform-toolset", so you can use it like:

$ PCbuild/build.bat --platform-toolset v140

With regards to appveyor.yml, I think one would just need to add --platform-toolset and make sure the image has the target version of Visual Studio on it. I'm not too familiar with appveyor, and as such I'm not sure what they have installed by default.

…d-slashes as this can interfere mingw/msys despite them cmd being used as the shell (and they're more portable).
…more straight-forward for one to specify the platform toolset directlty from their shell.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants