From 71fb011bd067dc957cb82254eb28e6c328ef50e1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 18 Feb 2022 17:38:11 -0500 Subject: [PATCH] Compile on web with debug symbols --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec8931f..cbd3af6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,8 @@ endif() if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten") message("Web build detected!") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") + set(ENABLE_WEB TRUE) set(ENABLE_WEBGPU TRUE) endif()