Skip to content

Commit bbe6d11

Browse files
committed
Fix enormous binary sizes
I mean like DAMN. The Windows binary was over 100MB!!!
1 parent ff3f733 commit bbe6d11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
104104
else()
105105
set(GODOT_LINKER_FLAGS "-static-libgcc -static-libstdc++ -Wl,-R,'$$ORIGIN'")
106106

107-
set(GODOT_COMPILE_FLAGS "-fPIC -g -Wwrite-strings -fexceptions -frtti -pthread")
107+
set(GODOT_COMPILE_FLAGS "-fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -frtti -pthread")
108108

109109
if(CMAKE_BUILD_TYPE MATCHES Debug)
110-
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-omit-frame-pointer -O0")
110+
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -g -fno-omit-frame-pointer -O0")
111111
else()
112112
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -O3")
113113
endif()

0 commit comments

Comments
 (0)