diff options
author | Mike McLaughlin <mikem@microsoft.com> | 2016-03-15 16:04:06 -0700 |
---|---|---|
committer | Mike McLaughlin <mikem@microsoft.com> | 2016-03-22 14:24:03 -0700 |
commit | 4efef62f0ead16b4f8ca2c6ccf0a77ce112f73b9 (patch) | |
tree | 97f19fefb5832f8e92f63b2cd7c09c43ac9b0904 /src/scripts | |
parent | 1a9eb1c5f4d9f257f3f96ef5205a0eb1a23395c3 (diff) | |
download | coreclr-4efef62f0ead16b4f8ca2c6ccf0a77ce112f73b9.tar.gz coreclr-4efef62f0ead16b4f8ca2c6ccf0a77ce112f73b9.tar.bz2 coreclr-4efef62f0ead16b4f8ca2c6ccf0a77ce112f73b9.zip |
Strip symbols on release builds into separate binaries
Issue #3669
Created a common cmake strip_symbols function that all the modules and programs
use to strip the symbols out of the main into a separate .dbg (Linux) or .dSYM (OSX)
file.
Added an install_clr cmake function to encapsulate the install logic.
Changed all the library module cmake install lines from a TARGETS to a FILES one. The
TARGETS based install directives caused cmake to relink the binary and copy the unstripped
version to the install path. Left the all programs like corerun or ildasm as TARGETS
installs because on OSX FILES type installs don't get marked as executable.
Need to use "get_property(strip_source_file TARGET ${targetName} PROPERTY LOCATION)" for
the older versions of cmake and "set(strip_source_file $<TARGET_FILE:${targetName}>)" on
newer versions (v3 or greater).
Diffstat (limited to 'src/scripts')
-rw-r--r-- | src/scripts/genXplatLttng.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/genXplatLttng.py b/src/scripts/genXplatLttng.py index 7befa6136e..d343b122ff 100644 --- a/src/scripts/genXplatLttng.py +++ b/src/scripts/genXplatLttng.py @@ -444,7 +444,7 @@ def generateLttngFiles(etwmanifest,eventprovider_directory): add_subdirectory(tracepointprovider) # Install the static eventprovider library - install (TARGETS eventprovider DESTINATION lib) + install(TARGETS eventprovider DESTINATION lib) """) topCmake.close() @@ -481,11 +481,11 @@ def generateLttngFiles(etwmanifest,eventprovider_directory): tracepointprovider_Cmake.write(""" ) target_link_libraries(coreclrtraceptprovider - -llttng-ust + -llttng-ust ) - #Install the static coreclrtraceptprovider library - install (TARGETS coreclrtraceptprovider DESTINATION .) + # Install the static coreclrtraceptprovider library + install_clr(coreclrtraceptprovider) """) tracepointprovider_Cmake.close() |