[go: up one dir, main page]

Skip to content

Commit

Permalink
non-Win, non-Debug builds: strip module file symbols to save space...
Browse files Browse the repository at this point in the history
... This only strips the symbols that do not have external linkage
  • Loading branch information
Paul-Licameli committed May 18, 2021
1 parent dfbf3d2 commit 7cf78c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake-proxies/cmake-modules/AudacityFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,14 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
target_link_options( ${TARGET} PRIVATE ${LOPTS} )
target_link_libraries( ${TARGET} PUBLIC ${LIBRARIES} )

if( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
add_custom_command(
TARGET "${TARGET}"
POST_BUILD
COMMAND $<IF:$<CONFIG:Debug>,echo,strip> -x $<TARGET_FILE:${TARGET}>
)
endif()

# define an additional interface library target
set(INTERFACE_TARGET "${TARGET}-interface")
if (NOT REAL_LIBTYPE STREQUAL "MODULE")
Expand Down

0 comments on commit 7cf78c1

Please sign in to comment.