Skip to content

Commit a9a54ae

Browse files
committed
Fix for xcode build
1 parent 4c4d582 commit a9a54ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ else()
292292
if (ATOMIC_LINKAGE_FIX)
293293
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -latomic")
294294
endif()
295+
if (CMAKE_OSX_SYSROOT)
296+
# https://github.com/unicorn-engine/unicorn/issues/1917
297+
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -isysroot ${CMAKE_OSX_SYSROOT} ")
298+
endif()
295299

296300
set(TARGET_LIST "--target-list=")
297301
if(UNICORN_HAS_X86)

0 commit comments

Comments
 (0)