Skip to content

Commit

Permalink
build, refactor: update iPhone simulator targets and improve CMake co…
Browse files Browse the repository at this point in the history
…nditions.
  • Loading branch information
xicilion committed Nov 15, 2024
1 parent 853567e commit 846544a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ jobs:
type: release
test: skip
- os: macos-14
target: iphone
target: iphone-simulator
arch: arm64
type: release
test: skip
- os: macos-14
target: iphone-simulator
arch: x64
type: release
test: skip
Expand Down
2 changes: 1 addition & 1 deletion build_tools
2 changes: 1 addition & 1 deletion openssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if("${BUILD_OS}" STREQUAL "Windows")
else()
enable_language(ASM)

if("${BUILD_OS}" STREQUAL "Darwin" OR "${BUILD_OS}" STREQUAL "iPhone")
if("${BUILD_OS}" MATCHES "Darwin|iPhone")
include(./cmake/darwin_${BUILD_ARCH}.cmake)
elseif("${BUILD_ARCH}" STREQUAL "loong64ow")
include(./cmake/linux_loong64.cmake)
Expand Down
2 changes: 2 additions & 0 deletions v8/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ if("${BUILD_OS}" STREQUAL "Alpine")
include(cmake/v8-${BUILD_ARCH}-Linux.cmake)
elseif("${BUILD_ARCH}" STREQUAL "loong64ow")
include(cmake/v8-loong64-${BUILD_OS}.cmake)
elseif("${BUILD_OS}" MATCHES "iPhone")
include(cmake/v8-${BUILD_ARCH}-iPhone.cmake)
else()
include(cmake/v8-${BUILD_ARCH}-${BUILD_OS}.cmake)
endif()
Expand Down
2 changes: 1 addition & 1 deletion v8/cmake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if("${BUILD_ARCH}" STREQUAL "x64")
add_definitions(-DV8_ENABLE_WASM_SIMD256_REVEC)
endif()

if("${BUILD_OS}" STREQUAL "iPhone")
if("${BUILD_OS}" MATCHES "iPhone")
add_definitions(-DV8_JITLESS)
endif()

Expand Down

0 comments on commit 846544a

Please sign in to comment.