Leave function name symbols in binaries when stripping out debug information.
authorBrian Robbins <brianrob@microsoft.com>
Tue, 5 Apr 2016 20:18:45 +0000 (13:18 -0700)
committerBrian Robbins <brianrob@microsoft.com>
Tue, 5 Apr 2016 20:18:45 +0000 (13:18 -0700)
CMakeLists.txt

index 1a4e1e4..57951e6 100644 (file)
@@ -303,7 +303,7 @@ function(strip_symbols targetName outputFilename)
           POST_BUILD
           VERBATIM 
           COMMAND ${OBJCOPY} --only-keep-debug ${strip_source_file} ${strip_destination_file}
-          COMMAND ${OBJCOPY} --strip-unneeded ${strip_source_file}
+          COMMAND ${OBJCOPY} --strip-debug ${strip_source_file}
           COMMAND ${OBJCOPY} --add-gnu-debuglink=${strip_destination_file} ${strip_source_file}
           COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file}
         )