From b07063792113e141c1a19ad20cce9a7f5450b39c Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Thu, 2 Dec 2021 11:11:00 +0100 Subject: [PATCH] Make nightly distibution compatible with most CPUs --- Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index ea2adf2fa4..29fad0efa0 100644 --- a/Earthfile +++ b/Earthfile @@ -117,7 +117,7 @@ build-nightly-release: RUN git log --pretty=format:'%h' -n 1 >> version.txt RUN printf " on: " >> version.txt RUN date >> version.txt - RUN cargo build --features with_sound --release + RUN RUSTFLAGS="-C target-cpu=x86-64-v2" cargo build --features with_sound --release RUN cd ./target/release && tar -czvf roc_linux_x86_64.tar.gz ./roc ../../LICENSE ../../LEGAL_DETAILS ../../examples/hello-world ../../examples/hello-rust ../../examples/hello-zig ../../compiler/builtins/bitcode/src/ ../../roc_std SAVE ARTIFACT ./target/release/roc_linux_x86_64.tar.gz AS LOCAL roc_linux_x86_64.tar.gz