Skip to content

Commit

Permalink
Add hot reload support when building with GCC and CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
ytnuf committed Aug 13, 2024
1 parent 9b98377 commit b91fe60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ endif()

if (GODOT_ENABLE_HOT_RELOAD)
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -D HOT_RELOAD_ENABLED")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-gnu-unique")
endif()
endif()

# Generate source from the bindings file
Expand Down

0 comments on commit b91fe60

Please sign in to comment.