diff options
author | Adeel Mujahid <adeelbm@outlook.com> | 2020-03-10 03:08:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 03:08:21 +0300 |
commit | 253a0b4fb3fd1ae1860f121d9260eaae94ded701 (patch) | |
tree | f4d64b1383d9012cc1c21c0dc053952ad5efddd2 /eng/native/functions.cmake | |
parent | 1e04f68b1b97bf36e4f1fc75ea23b9d156c19920 (diff) |
Consolidate objcopy detection (#33342)
Diffstat (limited to 'eng/native/functions.cmake')
-rw-r--r-- | eng/native/functions.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eng/native/functions.cmake b/eng/native/functions.cmake index f11c56c8283..aa2c9411ab6 100644 --- a/eng/native/functions.cmake +++ b/eng/native/functions.cmake @@ -276,9 +276,9 @@ function(strip_symbols targetName outputFilename skipStrip) TARGET ${targetName} POST_BUILD VERBATIM - COMMAND ${OBJCOPY} --only-keep-debug ${strip_source_file} ${strip_destination_file} - COMMAND ${OBJCOPY} --strip-debug ${strip_source_file} - COMMAND ${OBJCOPY} --add-gnu-debuglink=${strip_destination_file} ${strip_source_file} + COMMAND ${CMAKE_OBJCOPY} --only-keep-debug ${strip_source_file} ${strip_destination_file} + COMMAND ${CMAKE_OBJCOPY} --strip-debug ${strip_source_file} + COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=${strip_destination_file} ${strip_source_file} COMMENT Stripping symbols from ${strip_source_file} into file ${strip_destination_file} ) endif() |