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
build: improve makefile to be os agnostic #52866
base: main
Are you sure you want to change the base?
Conversation
4ca1542
to
9d29211
Compare
9d29211
to
958f0fd
Compare
cc @nodejs/platform-windows @lemire can you take a look? |
ifeq ($(OS),Windows_NT) | ||
OSTYPE := windows | ||
|
||
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong to me. You compare against AMD64 and if so, you set arm64, and so forth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this was meant to be ARM64?
ifeq ($(OS),Windows_NT) | ||
OSTYPE := windows | ||
|
||
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64) | |
ifeq ($(PROCESSOR_ARCHITEW6432),ARM64) |
ARCHTYPE := arm64 | ||
else | ||
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | ||
ARCHTYPE := arm64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARCHTYPE := arm64 | |
ARCHTYPE := amd64 |
Unrelated to this PR, but do we build Node for Windows ARM64 in CI? |
For certain vsbuild.bat actions, it executes makefile and on PowerShell it was throwing error for me because
uname
doesn't exist. This pull-request doesn't solve all Windows related issues in makefile but makes the terminal output a lot cleaner.cc @nodejs/platform-windows @nodejs/build