Update build scripts to include OSX.

This commit is contained in:
H. Utku Maden 2024-04-06 15:57:37 +03:00
parent 7ba37df367
commit fdfac9d951
3 changed files with 3 additions and 5 deletions

@ -1,7 +1,7 @@
# QUIK Toolchain file for OSX-ARM64 systems. # QUIK Toolchain file for OSX-ARM64 systems.
# Copyright (C) 2024 # Copyright (C) 2024
set(CMAKE_SYSTEM_NAME OSX) set(CMAKE_SYSTEM_NAME Darwin)
set(CMAKE_C_COMPILER aarch64-apple-darwin23-clang) set(CMAKE_C_COMPILER aarch64-apple-darwin23-clang)
set(CMAKE_CXX_COMPILER aarch64-apple-darwin23-clang++) set(CMAKE_CXX_COMPILER aarch64-apple-darwin23-clang++)

@ -1,7 +1,7 @@
# QUIK Toolchain file for OSX-ARM64 systems. # QUIK Toolchain file for OSX-ARM64 systems.
# Copyright (C) 2024 # Copyright (C) 2024
set(CMAKE_SYSTEM_NAME OSX) set(CMAKE_SYSTEM_NAME Darwin)
set(CMAKE_C_COMPILER x86_64-apple-darwin23-clang) set(CMAKE_C_COMPILER x86_64-apple-darwin23-clang)
set(CMAKE_CXX_COMPILER x86_64-apple-darwin23-clang++) set(CMAKE_CXX_COMPILER x86_64-apple-darwin23-clang++)

@ -16,7 +16,7 @@ fi
if [ -z "$ARCHS" ] if [ -z "$ARCHS" ]
then then
ARCHS="linux-arm linux-arm64 linux-x64 win-x64 win-x86" ARCHS="linux-arm linux-arm64 linux-x64 win-x64 win-x86 osx-arm64 osx-x64"
fi fi
if [ -z "$DST" ] if [ -z "$DST" ]
@ -43,8 +43,6 @@ for ARCH in $ARCHS; do
cmake -B $BUILD -S $SRC \ cmake -B $BUILD -S $SRC \
-G Ninja \ -G Ninja \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS=-static-libgcc \
-DCMAKE_CXX_FLAGS=-static-libgcc \
-DCMAKE_INSTALL_PREFIX=$PREFIX \ -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN \ -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN \
$QUIK_ADDITIONAL_CMAKE $QUIK_ADDITIONAL_CMAKE