Skip to content

Commit

Permalink
Fix enormous binary sizes
Browse files Browse the repository at this point in the history
I mean like DAMN. The Windows binary was over 100MB!!!
  • Loading branch information
Dudejoe870 committed Apr 3, 2024
1 parent ff3f733 commit bbe6d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
else()
set(GODOT_LINKER_FLAGS "-static-libgcc -static-libstdc++ -Wl,-R,'$$ORIGIN'")

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

if(CMAKE_BUILD_TYPE MATCHES Debug)
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-omit-frame-pointer -O0")
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -g -fno-omit-frame-pointer -O0")
else()
set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -O3")
endif()
Expand Down

0 comments on commit bbe6d11

Please sign in to comment.