Fix mac build:

- Change compiler version so it works with newer MacOS
- Fix library paths
- Exclude freetype which creates a build error
This commit is contained in:
Alvaro Lobato 2023-12-22 00:02:05 +01:00
parent 33d21e0675
commit 4de8f4953e
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
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")

View File

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