Skip to content

Commit

Permalink
Toolchain fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX committed Nov 3, 2024
1 parent 774762f commit ee99164
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion extern/borealis
11 changes: 6 additions & 5 deletions extern/cmake/toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ function(check_libromfs_generator)
endif()
endfunction()

# For unknown reason PLATFORM_SWITCH reports APPLE flag as TRUE
if (APPLE AND NOT PLATFORM_SWITCH)
set(PLATFORM_APPLE ON)
add_definitions(-DPLATFORM_APPLE)
endif ()

if (PLATFORM_DESKTOP)
add_definitions(-DPLATFORM_DESKTOP)
if (APPLE)
Expand Down Expand Up @@ -104,11 +110,6 @@ else()
message(FATAL_ERROR "Please set build target. Example: -DPLATFORM_DESKTOP=ON or -DPLATFORM_SWITCH=ON")
endif ()

if (PLATFORM_IOS OR PLATFROM_TVOS OR PLATFORM_MACOS)
set(PLATFORM_APPLE ON)
add_definitions(-DPLATFORM_APPLE)
endif()

# OpenGL driver
if (USE_DEKO3D)
message(STATUS "USE_DEKO3D")
Expand Down

0 comments on commit ee99164

Please sign in to comment.