Skip to content

Commit

Permalink
runtimes/native: make WINDOW_BACKEND=glfw default for macOS
Browse files Browse the repository at this point in the history
because minifb has fps issues on macOS.

cf.
aduros#554
emoon/minifb#62
  • Loading branch information
yamt committed Sep 26, 2024
1 parent 4a5501c commit bedb6e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtimes/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 3.7)
project(WASM4)

set(WASM_BACKEND "wasm3" CACHE STRING "webassembly runtime")
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(WINDOW_BACKEND "glfw" CACHE STRING "window backend")
else ()
set(WINDOW_BACKEND "minifb" CACHE STRING "window backend")
endif ()

set (WASM3 OFF)
set (TOYWASM OFF)
Expand Down

0 comments on commit bedb6e6

Please sign in to comment.