Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

feat: add support for M1 macOS #116

Merged
merged 10 commits into from
Mar 28, 2022
Merged

feat: add support for M1 macOS #116

merged 10 commits into from
Mar 28, 2022

Conversation

EricCrosson
Copy link
Contributor

feat: add support for M1 macOS

  • compiles build artifacts with musl instead of glibc for greater compatibility across Linux systems
  • adds support for the following target triples
    • i686-unknown-linux-musl
    • aarch64-unknown-linux-musl
    • aarch64-apple-darwin

Closes #33, closes #89, closes #101, closes #115

This commit

- compiles build artifacts with musl instead of glibc for greater compatibility
- adds support for the following target triples
  - i686-unknown-linux-musl
  - aarch64-unknown-linux-musl
  - aarch64-apple-darwin
because the checkout action deletes the working directory
Instead of downloading the monorepo binary into the node_modules/.bin
directory directly, provide a dummy script that `npm install` symlinks
into that directly, and download the monorepo binary into the
node_modules/@typescript-tools/rust-implementation/.bin directory,
at the source of the symlink.

Closes #115
- removes npm dependency on `tmp`
- simplifies logic originally sourced from the esbuild install flow
- favor a symlink over a hardlink to avoid the npm error referenced in the issue

Closes #115
The intent of this commit is to remove the following warning available
on install

```
Error: EEXIST: file already exists, symlink ...
```

Closes #115
This reverts commit 87bc2a5.

This commit caused the error

```
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path node_modules/@typescript-tools/rust-implementation/bin/monorepo
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod 'node_modules/@typescript-tools/rust-implementation/bin/monorepo'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
```

Please try reinstalling "@typescript-tools/rust-implementation" or opening a ticket with
details about your use case.
EOF
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Revert this diff

@EricCrosson EricCrosson force-pushed the beta branch 5 times, most recently from 0b8d111 to 1fa834a Compare March 27, 2022 23:28
Copy link
Contributor

@bitgopatmcl bitgopatmcl left a comment

Choose a reason for hiding this comment

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

Tested out the beta release on an M1 and it worked

@@ -1,3 +0,0 @@
[target.x86_64-apple-darwin]
linker = "x86_64-apple-darwin14-clang"
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@EricCrosson EricCrosson merged commit 48ec148 into master Mar 28, 2022
@EricCrosson EricCrosson deleted the beta branch March 28, 2022 14:41
@github-actions
Copy link

🎉 This PR is included in version 3.1.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants