summaryrefslogtreecommitdiffstats
path: root/build/cargo-host-linker
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbuild/cargo-host-linker3
-rw-r--r--build/cargo-host-linker.bat3
2 files changed, 6 insertions, 0 deletions
diff --git a/build/cargo-host-linker b/build/cargo-host-linker
new file mode 100755
index 0000000000..cbd0472bf7
--- /dev/null
+++ b/build/cargo-host-linker
@@ -0,0 +1,3 @@
+#!/bin/sh
+# See comment in cargo-linker.
+eval ${MOZ_CARGO_WRAP_HOST_LD} ${MOZ_CARGO_WRAP_HOST_LDFLAGS} '"$@"'
diff --git a/build/cargo-host-linker.bat b/build/cargo-host-linker.bat
new file mode 100644
index 0000000000..80e6eab273
--- /dev/null
+++ b/build/cargo-host-linker.bat
@@ -0,0 +1,3 @@
+@echo off
+REM See comment in cargo-linker (without extension)
+%MOZ_CARGO_WRAP_HOST_LD% %MOZ_CARGO_WRAP_HOST_LDFLAGS% %*