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

Add initial support for Darwin arm64 #34238

Merged
merged 2 commits into from Aug 25, 2020
Merged

Add initial support for Darwin arm64 #34238

merged 2 commits into from Aug 25, 2020

Conversation

evanlucas
Copy link
Contributor

@evanlucas evanlucas commented Jul 7, 2020

build: add support for build on arm64


deps: add openssl support for arm64

This adds the required files for supporting openssl
on arm64.

This uses the same configuration that can be found in
openssl/openssl#12369 to generate the required
files.


TODO

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. openssl Issues and PRs related to the OpenSSL dependency. labels Jul 7, 2020
@richardlau richardlau added arm Issues and PRs related to the ARM platform. macos Issues and PRs related to the macOS platform / OSX. labels Jul 7, 2020
deps/uv/src/unix/darwin.c Outdated Show resolved Hide resolved
@evanlucas evanlucas force-pushed the arm64 branch 2 times, most recently from 4169c57 to 3e476e2 Compare July 7, 2020 13:18
@evanlucas
Copy link
Contributor Author

We found a way to get os.cpus() working properly on both ARM and intel Macs. Once libuv/libuv#2914 lands, I'll get it pulled in. With some V8 patches, I was able to get wasi working properly. The inspector still has some issues that I am digging in to. Perhaps I should back out the libuv patch and we go ahead and land this and do it more incrementally? Thoughts?

@evanlucas
Copy link
Contributor Author

The bump to V8 8.5 (#34337) should fix the inspector and wasi issues.

@nodejs-github-bot
Copy link
Collaborator

@evanlucas evanlucas marked this pull request as ready for review August 25, 2020 14:12
@AshCripps
Copy link
Member

Also started a build on our DTKs as they are not part of the main runs yet - https://ci.nodejs.org/job/node-test-commit-osx-arm/4/

@evanlucas
Copy link
Contributor Author

@AshCripps thanks! The inspector and wasi tests are still going to fail until V8 8.5 is landed. I have a patch somewhere that works for those without the V8 upgrade. I'll try to find that and submit another PR after this one lands

This adds the required files for supporting openssl
on arm64.

This uses the same configuration that can be found in
openssl/openssl#12369 to generate the required
files.

PR-URL: nodejs#34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
Ref: nodejs/TSC#886
Ref: nodejs#34043

PR-URL: nodejs#34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
@evanlucas
Copy link
Contributor Author

Landed in 4b6036a...e3b79e3

@evanlucas evanlucas merged commit e3b79e3 into nodejs:master Aug 25, 2020
richardlau pushed a commit that referenced this pull request Sep 1, 2020
This adds the required files for supporting openssl
on arm64.

This uses the same configuration that can be found in
openssl/openssl#12369 to generate the required
files.

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
richardlau pushed a commit that referenced this pull request Sep 1, 2020
Ref: nodejs/TSC#886
Ref: #34043

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
@richardlau richardlau mentioned this pull request Sep 2, 2020
4 tasks
addaleax pushed a commit that referenced this pull request Sep 22, 2020
This adds the required files for supporting openssl
on arm64.

This uses the same configuration that can be found in
openssl/openssl#12369 to generate the required
files.

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
addaleax pushed a commit that referenced this pull request Sep 22, 2020
Ref: nodejs/TSC#886
Ref: #34043

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
addaleax pushed a commit that referenced this pull request Sep 22, 2020
This adds the required files for supporting openssl
on arm64.

This uses the same configuration that can be found in
openssl/openssl#12369 to generate the required
files.

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
addaleax pushed a commit that referenced this pull request Sep 22, 2020
Ref: nodejs/TSC#886
Ref: #34043

PR-URL: #34238
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ash Cripps <ashley.cripps@ibm.com>
@codebytere codebytere mentioned this pull request Sep 28, 2020
@richiksc richiksc mentioned this pull request Nov 26, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX. openssl Issues and PRs related to the OpenSSL dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants