Skip to content

Commit

Permalink
Fix glibc version setting build-version.sh
Browse files Browse the repository at this point in the history
Only apply it to glibc

Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu authored Jun 22, 2024
1 parent 134d5ae commit d07f211
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ if [[ "$TARGET_ARCH" == *"-linux-"* ]]; then
LLVM_DIR="$(llvm-config --cmakedir)"
export LLVM_DIR

CARGO_TARGET_ARCH="${TARGET_ARCH}.${GLIBC_VERSION}"
if [[ "$TARGET_ARCH" == *"-gnu"* ]]; then
CARGO_TARGET_ARCH="${TARGET_ARCH}.${GLIBC_VERSION}"
fi
fi

# Start building!
Expand Down

0 comments on commit d07f211

Please sign in to comment.