File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ else()
107
107
set (GODOT_COMPILE_FLAGS "-fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -frtti -pthread" )
108
108
109
109
if (CMAKE_BUILD_TYPE MATCHES Debug)
110
- set (GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -g - fno-omit-frame-pointer -O0" )
110
+ set (GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-omit-frame-pointer -O0" )
111
111
else ()
112
112
set (GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -O3" )
113
113
endif ()
@@ -119,6 +119,14 @@ set_property(TARGET libopenmpt APPEND_STRING PROPERTY COMPILE_FLAGS ${GODOT_COMP
119
119
set_property (TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS ${GODOT_LINKER_FLAGS} )
120
120
set_property (TARGET libopenmpt APPEND_STRING PROPERTY LINK_FLAGS ${GODOT_LINKER_FLAGS} )
121
121
122
+ # Only generate debug symbols for the main extension... NOT libopenmpt.
123
+ # Otherwise the binary sizes will be out of control.
124
+ # Comment this out and compile if you really need to debug what libopenmpt is doing
125
+ # (you probably don't)
126
+ if (NOT "${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" AND CMAKE_BUILD_TYPE MATCHES Debug)
127
+ set_property (TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS "-g" )
128
+ endif ()
129
+
122
130
# Create the correct name (godot.os.build_type.system_bits)
123
131
# Synchronized with godot-cpp's CMakeLists.txt
124
132
You can’t perform that action at this time.
0 commit comments