diff options
| author | malik1004x <malikowskirobert@gmail.com> | 2025-07-12 10:16:44 +0200 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2025-07-13 15:31:13 +0200 |
| commit | 947c0d85c33c0db9b643aa4a4eefc447bd87f1f2 (patch) | |
| tree | e2eebc47dab34e303de139a94981749ae5df3bf9 /contrib/depends/packages | |
| parent | c0ead4153bd215cad153276cace3150380ebb622 (diff) | |
darwin sed on darwin only
Diffstat (limited to 'contrib/depends/packages')
| -rw-r--r-- | contrib/depends/packages/native_mrustc.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/depends/packages/native_mrustc.mk b/contrib/depends/packages/native_mrustc.mk index dc9e1ff..6f5703b 100644 --- a/contrib/depends/packages/native_mrustc.mk +++ b/contrib/depends/packages/native_mrustc.mk @@ -19,7 +19,9 @@ define $(package)_preprocess_cmds sed -i.bak "s/STD_ENV_ARCH=[a-zA-Z0-9_]*/STD_ENV_ARCH=$$$$ARCH/" script-overrides/stable-1.54.0-linux/build_std.txt; \ fi && \ sed -i.bak 's/^make$$$$/make $$$$@/' build-1.54.0.sh &&\ - sed -i '' 's/^[[:space:]]*RUSTC_TARGET ?= x86_64-apple-darwin/RUSTC_TARGET ?= aarch64-apple-darwin/' run_rustc/Makefile && \ + if [ `uname -s` = "Darwin" ]; then \ + sed -i '' 's/^[[:space:]]*RUSTC_TARGET ?= x86_64-apple-darwin/RUSTC_TARGET ?= aarch64-apple-darwin/' run_rustc/Makefile; \ + fi && \ echo >> build-1.54.0.sh && \ echo make -C run_rustc >> build-1.54.0.sh endef |
