Skip to content

Commit

Permalink
Set CMAKE_OSX_SYSROOT only when wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Oct 14, 2019
1 parent 51b87fa commit 8ed8049
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stdlib/public/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ foreach(sdk ${SWIFT_CONFIGURED_SDKS})
set(arch_subdir "${SWIFT_SDK_${sdk}_LIB_SUBDIR}/${arch}")
set(arch_suffix "${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")

if(sdk STREQUAL WASM)
set(CMAKE_OSX_SYSROOT "${SWIFT_WASM_WASI_SDK_PATH}")
endif()

if("${SWIFT_SDK_${sdk}_OBJECT_FORMAT}" STREQUAL "ELF" OR
"${SWIFT_SDK_${sdk}_OBJECT_FORMAT}" STREQUAL "COFF")
# TODO(compnerd) switch to the generator expression when cmake is upgraded
Expand Down

0 comments on commit 8ed8049

Please sign in to comment.