Skip to content

Commit b91fe60

Browse files
committed
Add hot reload support when building with GCC and CMake
1 parent 9b98377 commit b91fe60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ endif()
126126

127127
if (GODOT_ENABLE_HOT_RELOAD)
128128
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -D HOT_RELOAD_ENABLED")
129+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
130+
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-gnu-unique")
131+
endif()
129132
endif()
130133

131134
# Generate source from the bindings file

0 commit comments

Comments
 (0)