Skip to content

Commit caade55

Browse files
lucylqfacebook-github-bot
authored andcommitted
Binary size flag patch (#2347)
Summary: From: D53950535 Need to remove -O2 flag for size optimization (otherwise we use both -O2 and -Os) Pull Request resolved: #2347 Reviewed By: larryliu0820 Differential Revision: D54762602 Pulled By: lucylq fbshipit-source-id: 62640116fd9fbff1900dcd6f08ccbebc334175cf
1 parent 6897964 commit caade55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ endif()
9898
# data into sections so they can be properly gc'd. -s: strip symbol.
9999
# -fno-exceptions -fno-rtti: disables exceptions and runtime type.
100100
set(CMAKE_CXX_FLAGS_RELEASE
101-
"-O2 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti")
101+
"-ffunction-sections -fdata-sections -fno-exceptions -fno-rtti")
102102
if(NOT APPLE)
103103
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
104104
endif()

0 commit comments

Comments
 (0)