You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Add a build-script flag to turn off dead stripping (no-op on non-Darwin platform).
2. Pass it down to CMake and use it to turn off dead-stripping in the code below.
3. Suggest this flag in the getting started guide; debugging with a RelWithDebInfoAssert build should improve after turning this on because debugging-only functions like the various dump() methods should not be getting optimized out.
if(NOTCMAKE_BUILD_TYPESTREQUALDebug)
if(CMAKE_SYSTEM_NAMEMATCHESDarwin)
# Seerdar://48283130: This gives 6MB+ size reductions for swift and
# SourceKitService, andmuchlargersizereductionsforsil-optetc.
target_link_options(${target} PRIVATE"SHELL:-Xlinker -dead_strip")
endif()
endif()
Strictly speaking, part 1 is optional as build-script already has a --extra-cmake-options flag.
The text was updated successfully, but these errors were encountered:
I've been trying to implement this, but I'm struggling because I'm not seeing much of a difference on the console output after making the changes to the build process. Can you give me any guidance on how to debug the changes I make on CMake through Logs or something? 🙂
Additional Detail from JIRA
md5: 2fe271a48791ae85b5f8c0537041d016
Issue Description:
1. Add a build-script flag to turn off dead stripping (no-op on non-Darwin platform).
2. Pass it down to CMake and use it to turn off dead-stripping in the code below.
3. Suggest this flag in the getting started guide; debugging with a RelWithDebInfoAssert build should improve after turning this on because debugging-only functions like the various dump() methods should not be getting optimized out.
Strictly speaking, part 1 is optional as build-script already has a
--extra-cmake-options
flag.The text was updated successfully, but these errors were encountered: