From 8ebf96b9e99facf2392b0a3ef57844eee192baee Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 15 Aug 2024 02:12:46 +0900 Subject: [PATCH] runtimes/native: make WINDOW_BACKEND=glfw default for macOS because minifb has fps issues on macOS. cf. https://github.com/aduros/wasm4/issues/554 https://github.com/emoon/minifb/issues/62 --- runtimes/native/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtimes/native/CMakeLists.txt b/runtimes/native/CMakeLists.txt index cf4a7908..1e2bbbcd 100644 --- a/runtimes/native/CMakeLists.txt +++ b/runtimes/native/CMakeLists.txt @@ -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)