Merge pull request #597 from alvarolobato/fix_mac_build

Fix MacOS build
This commit is contained in:
fvanroie 2023-12-24 23:30:39 +01:00 committed by GitHub
commit 0ebfe7dcef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
Import("env") Import("env")
env.Replace(CC="gcc-10", CXX="g++-10") #env.Replace(CC="gcc-10", CXX="g++-10")
env.Replace(CC="gcc-12", CXX="g++-12")
env.Replace(BUILD_SCRIPT="tools/osx_build_script.py") env.Replace(BUILD_SCRIPT="tools/osx_build_script.py")

View File

@ -58,8 +58,10 @@ build_flags =
-lm -lm
-lpthread -lpthread
; MacOS with Homebrew ; MacOS with Homebrew
-I/usr/local/include ;-I/usr/local/include
-L/usr/local/lib ;-L/usr/local/lib
-I/opt/homebrew/include
-L/opt/homebrew/lib
-DTARGET_OS_MAC=1 -DTARGET_OS_MAC=1
lib_deps = lib_deps =
@ -77,6 +79,7 @@ lib_ignore =
ArduinoLog ArduinoLog
lv_lib_qrcode lv_lib_qrcode
ETHSPI ETHSPI
freetype
build_src_filter = build_src_filter =
+<*> +<*>