Skip to content

Commit

Permalink
Fix cross-compiler names.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Apr 14, 2024
1 parent c685e86 commit 051c584
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@ else
fi

CFLAGS="-Wall -Wextra -Werror ${CFLAGS:-}"
CC=$PREFIX${CC:-cc}
CXX=$PREFIX${CXX:-c++}

if uname | grep -q BSD; then
CC=$PREFIX${CC:-cc}
CXX=$PREFIX${CXX:-c++}
else
CC=$PREFIX${CC:-gcc}
CXX=$PREFIX${CXX:-g++}
fi

if uname | grep -q BSD; then
LIBS=
Expand Down

0 comments on commit 051c584

Please sign in to comment.