diff --git a/CMakeLists.txt b/CMakeLists.txt index 96090611d1..63db787773 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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