-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use canonical names like x86
, x64
for architecture
#2290
Comments
daxgames
added a commit
to daxgames/cmder
that referenced
this issue
Apr 6, 2020
Thanks for handling this quickly! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm a long time Cmder user and for idiosyncratic reasons I've historically run the 32-bit version of cmd.exe, so I didn't encounter this problem until just now.
I was building dotnet/wpf just now and noticed that it had trouble building correctly.
I debugged it down to these lines that fail to initialize the MSBuild property
$(Architecture)
correctly (it's initialized to64
instead ofx64
), which in turn lead to my (dev) build failures in dotnet/wpf.Ultimately, this seems to the what caused my troubles, where
%architecture%
is (seemingly) set for script-local use, but the environment-variable ultimately leaks out of the script:cmder/vendor/init.bat
Lines 125 to 132 in 1071221
I have two suggestions:
setlocal
at the top of the batch file wherever it makes sense. I realize that the 'fix' may not be as simple as adding a one-line change, since some env-vars might be exported deliberately, whereas others might be leaking merely as a side-effect.x86
,x64
,arm
,arm64
etc. forarchitecture
(instead of86
,64
etc. ).The text was updated successfully, but these errors were encountered: