-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
nested tools.vcvars() ignores arch change #3673
Comments
But, why are you forcing the arch to |
Because this way an installer package cannot be correctly build from recipe when it's binary is not available. Say, I'm building I'm afraid all recommendations from docs to use
are flawed for the same reason. One's packages should behave exactly the same, whether their binaries are available or not. |
So there are two issues the underlying cross-build model issue (#3329, #2301) and the multiple For the underlying issue, I would recommend to build first the package for the installer and then the regular packages. A new cross build is needed but it will take time. |
vcvars sets the following environment variables:
we may use them to detect if we need to change variables |
These |
The code below doesn't work as one would expect:
result:
(note
x64
printed by secondcl
). The reason I'm asking for this is following. Consider a test recipe:Then I build it with
conan create
, 32-bit compiler is called. It's OK. But then I try to use conan package tools:I get output:
64-bit environment is set. That's because
ConanMultiPackager()
callstools.vcvars()
itself and the second call oftools.vcvars()
from the recipe is just ignored.The text was updated successfully, but these errors were encountered: