From e5dd1a4650a8c397d21138316cd954c31b1c25fc Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Thu, 12 Nov 2020 16:46:09 -0500 Subject: OSX Add option -no_code_signature_warning (#44604) When building on Apple Silicon the stripping pass warns about breaking signing despite not having signed the binary yet. Disable the warning --- eng/native/functions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eng/native/functions.cmake') diff --git a/eng/native/functions.cmake b/eng/native/functions.cmake index 10c17e69264..20c7a68c2cd 100644 --- a/eng/native/functions.cmake +++ b/eng/native/functions.cmake @@ -268,7 +268,7 @@ function(strip_symbols targetName outputFilename) string(TOLOWER "${CMAKE_BUILD_TYPE}" LOWERCASE_CMAKE_BUILD_TYPE) if (LOWERCASE_CMAKE_BUILD_TYPE STREQUAL release) - set(strip_command ${STRIP} -S ${strip_source_file}) + set(strip_command ${STRIP} -no_code_signature_warning -S ${strip_source_file}) else () set(strip_command) endif () -- cgit v1.2.3