From 253a0b4fb3fd1ae1860f121d9260eaae94ded701 Mon Sep 17 00:00:00 2001 From: Adeel Mujahid Date: Tue, 10 Mar 2020 02:08:21 +0200 Subject: Consolidate objcopy detection (#33342) --- eng/native/functions.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eng/native/functions.cmake') 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() -- cgit v1.2.3