summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/build.rs b/cli/build.rs
index 77c95fb17..0d683780f 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -343,7 +343,10 @@ fn main() {
.display(),
);
- #[cfg(not(target_os = "windows"))]
+ #[cfg(all(
+ not(target_os = "windows"),
+ not(all(target_os = "linux", target_arch = "aarch64"))
+ ))]
{
// Load the symbols file generated by the `napi_sym` macro.
#[derive(serde::Deserialize)]
@@ -375,6 +378,10 @@ fn main() {
}
}
+ // Linux + aarch64 does not support a glibc version that supports `--export-dynamic-symbol`.
+ #[cfg(all(target_os = "linux", target_arch = "aarch64"))]
+ println!("cargo:rustc-link-arg-bin=deno=-rdynamic");
+
// To debug snapshot issues uncomment:
// op_fetch_asset::trace_serializer();