ci: fix CFLAGS for macos otp build

This commit is contained in:
Zaiming (Stone) Shi 2023-06-06 01:45:51 +02:00
parent b3c079dc21
commit da8f3da4cc
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ runs:
git clone --depth 1 --branch OTP-${{ inputs.otp }} https://github.com/emqx/otp.git "$OTP_SOURCE_PATH"
cd "$OTP_SOURCE_PATH"
if [ "$(arch)" = arm64 ]; then
export CFLAGS="-I$(brew --prefix unixodbc)/include"
export CFLAGS="-O2 -g -I$(brew --prefix unixodbc)/include"
export LDFLAGS="-L$(brew --prefix unixodbc)/lib"
WITH_ODBC="--with-odbc=$(brew --prefix unixodbc)"
else
@ -92,8 +92,8 @@ runs:
rm -rf "$OTP_INSTALL_PATH"
make install
if [ "$(arch)" = arm64 ]; then
unset CFLAGS
unset LDFLAGS
unset CC
fi
- name: build
env: