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

Set default architecture of msbuild to x64 if running on 64bit machine #112

Closed
wants to merge 4 commits into from

Conversation

rocklan
Copy link

@rocklan rocklan commented Feb 10, 2023

This addresses #88.

The msbuild-architecture parameter defined in the yml no longer defaults to 'x86' and instead can be empty. If so, the typescript code now detects if the OS is 64bit (by using Os.arch() - https://nodejs.org/api/os.html#osarch), and if so sets the default architecture to x64 (or should it be amd64?).

It works on my 64 bit build machines, but I don't have any other architectures to test this on, but it should be perfectly fine and not have any issues whatsoever, right? Maybe it's worth tagging this as v2-beta or something and give people the opportunity to opt in for a while to make sure it's ok.

@timheuer
Copy link
Member

Thanks @rocklan -- want to check with the MSBuild crew on ensuring this would result in all the right things on OSes.

@rocklan
Copy link
Author

rocklan commented Feb 10, 2023

@microsoft-github-policy-service agree company="Rome2rio"

@rocklan
Copy link
Author

rocklan commented May 22, 2023

Any update on this?

@rocklan
Copy link
Author

rocklan commented Nov 17, 2023

sigh

@rocklan rocklan closed this Nov 17, 2023
Copy link
Member

@baronfel baronfel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, this is perfectly fine to do 👍

@baronfel
Copy link
Member

@timheuer very sorry for the long delay here - this is safe and can be merged at any time.

@rainersigwald
Copy link
Member

I'm not sure this is safe -- there are definitely builds in the wild that work on 32-bit MSBuild and will fail on 64-bit MSBuild. As far as I know AzDO isn't changing the default for that reason.

It is completely reasonable, though! We should encourage folks to use 64-bit MSBuild since it's the default VS 2022+ experience (which is probably slowly fixing the bugs where a build requires 32-bit), and also . . . everything else is moving to 64-bit.

Maybe in a major version bump?

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.

4 participants