Skip to content

Commit 9fd8fa2

Browse files
committed
Move some things from config.sh to ext_config.sh
1 parent d571910 commit 9fd8fa2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/config.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,5 @@ export RUSTC=$dir"/bin/cg_clif"
1818
export RUSTDOCFLAGS=$linker' -Cpanic=abort -Zpanic-abort-tests '\
1919
'-Zcodegen-backend='$dir'/lib/'$dylib' --sysroot '$dir
2020

21-
# FIXME fix `#[linkage = "extern_weak"]` without this
22-
if [[ "$(uname)" == 'Darwin' ]]; then
23-
export RUSTFLAGS="$RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
24-
fi
25-
2621
export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:"$dir"/lib"
2722
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH

scripts/ext_config.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
2525
echo "Unknown non-native platform"
2626
fi
2727
fi
28+
29+
# FIXME fix `#[linkage = "extern_weak"]` without this
30+
if [[ "$(uname)" == 'Darwin' ]]; then
31+
export RUSTFLAGS="$RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
32+
fi

0 commit comments

Comments
 (0)