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

Delete .cmd scripts created by Boost #439

Open
zackgalbreath opened this issue Aug 31, 2018 · 1 comment
Open

Delete .cmd scripts created by Boost #439

zackgalbreath opened this issue Aug 31, 2018 · 1 comment

Comments

@zackgalbreath
Copy link
Contributor

Boost creates .cmd scripts to set up the PATH to point to cl.exe. These are named something like
C:\Users\<myusername>\AppData\Local\Temp\b2_msvc_14.1_vcvarsx86_amd64_.cmd

A Visual Studio upgrade moves cl.exe to a new location, causing this .cmd script to become stale & incorrectly set the path. This causes b2 to fail because it can't find cl.exe.

To solve this problem, we should teach Fletch to delete these files early in the configure step of Boost. We can use the TEMP environment variable to get the location of the directory containing these scripts.

@dstoup
Copy link
Collaborator

dstoup commented Sep 4, 2018

This is a better solution for sure. I have bumped into this issue on upgrade before as have others. Fixing this issue will save people a lot of time.

A note to anyone who looks at this issue before I can, we should probably target the release branch.

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

No branches or pull requests

2 participants