Skip to content

Commit

Permalink
fixup! fixup! fixup! ci: Try to fix macOS runner
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Apr 26, 2024
1 parent 696d5a8 commit c8b7673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ci/macos-cargo-linker
@@ -0,0 +1,2 @@
#!/bin/sh
env -u DYLD_LIBRARY_PATH /usr/bin/cc "$@"
5 changes: 1 addition & 4 deletions ci/test.sh
Expand Up @@ -66,8 +66,7 @@ set_llvm_env() {
else
llvm_download $base_url `llvm_macos_target_triple ${LLVM_VERSION_TRIPLE}`
export DYLD_LIBRARY_PATH="${LLVM_DIRECTORY}/lib":${DYLD_LIBRARY_PATH:-}
export CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER="${LLVM_DIRECTORY}/bin/clang"
export MACOSX_DEPLOYMENT_TARGET="10.6"
export CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER="$(pwd)/ci/macos-cargo-linker"
fi
export LD="${LLVM_DIRECTORY}/bin/clang"
export CC="${LLVM_DIRECTORY}/bin/clang"
Expand Down Expand Up @@ -108,8 +107,6 @@ get_cargo_args() {

if [ ! -z "$RUST_CROSS_COMPILER" ]; then
export RUSTFLAGS="-C linker=${RUST_CROSS_COMPILER}-gcc"
else
export RUSTFLAGS="-C linker=${LLVM_DIRECTORY}/bin/clang"
fi

CARGO_ARGS=`get_cargo_args`
Expand Down

0 comments on commit c8b7673

Please sign in to comment.