diff options
author | Luke Channings <461449+LukeChannings@users.noreply.github.com> | 2022-10-10 03:29:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 07:59:31 +0530 |
commit | a2488ae79200abfcbad0f0f8b084a3ff8e183880 (patch) | |
tree | 23a0e5138e0de596834b71a65795a0ffb5ddcfa2 /cli/bench | |
parent | 3b6b75bb46840a897a310dfd3fcbbd05618f3c5b (diff) |
fix(npm): support compiling on linux/aarch64 (#16208)
Changes introduced in #13633 have broken the ability to compile for
linux/aarch64 - specifically the use of a `i8` as a char type, which is
an `u8` on linux/aarch64.
This PR:
- Replaces instances of `i8` with the architecture-aware wrapper type
`c_char`
- Skips the use of `--export-dynamic-symbol` on linux-aarch64, because
the target environments often rely on older libc/binutils versions
Diffstat (limited to 'cli/bench')
-rw-r--r-- | cli/bench/http.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/bench/http.rs b/cli/bench/http.rs index 0af2b5393..a656ee708 100644 --- a/cli/bench/http.rs +++ b/cli/bench/http.rs @@ -67,6 +67,9 @@ pub fn benchmark( #[cfg(target_vendor = "apple")] #[cfg(target_arch = "aarch64")] let bun_exe = test_util::prebuilt_tool_path("bun-aarch64"); + #[cfg(target_os = "linux")] + #[cfg(target_arch = "aarch64")] + let bun_exe = test_util::prebuilt_tool_path("bun-aarch64"); // bun <path> <port> res.insert( |