Fix for xcode build

This commit is contained in:
mio 2024-03-08 17:28:46 +08:00
parent 4c4d582fcb
commit a9a54aed2f
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,10 @@ else()
if (ATOMIC_LINKAGE_FIX)
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -latomic")
endif()
if (CMAKE_OSX_SYSROOT)
# https://github.com/unicorn-engine/unicorn/issues/1917
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -isysroot ${CMAKE_OSX_SYSROOT} ")
endif()
set(TARGET_LIST "--target-list=")
if(UNICORN_HAS_X86)