@@ -32,12 +32,16 @@ endif()
32
32
33
33
find_library (LIB_DART_DEBUG
34
34
NAMES "${LIB_PREFIX} dart"
35
- HINTS "${DART_DIR} /out/DebugX64/obj/runtime/bin" "${DART_DIR} /xcodebuild/ReleaseX64/obj/runtime/bin"
35
+ HINTS "${DART_DIR} /out/DebugX64/obj/runtime/bin"
36
+ "${DART_DIR} /xcodebuild/DebugX64/obj/runtime/bin"
37
+ "${DART_DIR} /xcodebuild/DebugARM64/obj/runtime/bin"
36
38
)
37
39
38
40
find_library (LIB_DART_RELEASE
39
41
NAMES "${LIB_PREFIX} dart"
40
- HINTS "${DART_DIR} /out/ReleaseX64/obj/runtime/bin" "${DART_DIR} /xcodebuild/ReleaseX64/obj/runtime/bin"
42
+ HINTS "${DART_DIR} /out/ReleaseX64/obj/runtime/bin"
43
+ "${DART_DIR} /xcodebuild/ReleaseX64/obj/runtime/bin"
44
+ "${DART_DIR} /xcodebuild/ReleaseARM64/obj/runtime/bin"
41
45
)
42
46
43
47
target_compile_definitions (dart_dll PRIVATE
@@ -84,9 +88,15 @@ elseif(LINUX)
84
88
${CMAKE_DL_LIBS}
85
89
)
86
90
elseif (APPLE )
87
- set (CMAKE_C_COMPILER "${DART_DIR} /buildtools/mac-x64/clang/bin/clang" )
88
- set (CMAKE_CXX_COMPILER "${DART_DIR} /buildtools/mac-x64/clang/bin/clang++" )
89
- set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib++ ${DART_DIR} /buildtools/mac-x64/clang/lib/libc++.a -framework Cocoa -framework QuartzCore -framework Security" )
91
+ if (CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64" )
92
+ set (CMAKE_C_COMPILER "${DART_DIR} /buildtools/mac-arm64/clang/bin/clang" )
93
+ set (CMAKE_CXX_COMPILER "${DART_DIR} /buildtools/mac-arm64/clang/bin/clang++" )
94
+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib++ ${DART_DIR} /buildtools/mac-arm64/clang/lib/libc++.a -framework Cocoa -framework QuartzCore -framework Security" )
95
+ else ()
96
+ set (CMAKE_C_COMPILER "${DART_DIR} /buildtools/mac-x64/clang/bin/clang" )
97
+ set (CMAKE_CXX_COMPILER "${DART_DIR} /buildtools/mac-x64/clang/bin/clang++" )
98
+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib++ ${DART_DIR} /buildtools/mac-x64/clang/lib/libc++.a -framework Cocoa -framework QuartzCore -framework Security" )
99
+ endif ()
90
100
endif ()
91
101
92
102
if (LIB_DART_DEBUG)
0 commit comments