Skip to content

Commit

Permalink
Update build_ubuntu-22.04.sh python variable
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix authored Nov 27, 2023
1 parent e4e9ef2 commit 8244208
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_ubuntu-22.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ if [ -z "$1" ]; then
exit 1
fi

python_var=${PYTHON:-python3}
# Adding -Werror to make's CFLAGS is a workaround for configuring with
# an old version of configure, which issues compiler warnings and
# errors out. This may be removed with upgraded configure.in file.
makecmd="make"
makecmd="make PYTHON='$python_var'"
if [[ "$#" -eq 2 ]]; then
makecmd="make CFLAGS='$CFLAGS $2' CXXFLAGS='$CXXFLAGS $2'"
makecmd="make CFLAGS='$CFLAGS $2' CXXFLAGS='$CXXFLAGS $2' PYTHON='$python_var'"
fi

# non-existent variables as an errors
Expand Down

0 comments on commit 8244208

Please sign in to comment.