1
0
Deve 9d894bc80e
macOS: update and switch off from Cocoapods (#98)
Co-authored-by: Maksym H <Maksym48@pm.me>
2022-09-25 12:10:27 +02:00

15 lines
579 B
Bash
Executable File

#!/bin/bash -e
# This file sets the appropriate compiler and flags for compiling for macOS without XCode
sdk=macosx
export OSX_OSVER=10.11
export OSX_ARCHES="x86_64 arm64"
export OSX_ARCHITECTURES="x86_64;arm64"
export OSX_ARCH="-arch x86_64 -arch arm64"
export OSX_COMPILER=$(xcrun --sdk $sdk --find clang)
export OSX_CC=$OSX_COMPILER
export OSX_CXX=$OSX_COMPILER
export OSX_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -mmacosx-version-min=$OSX_OSVER -fvisibility=hidden -fdata-sections -ffunction-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -Ofast"