Skip to content

Commit

Permalink
OSX Add option -no_code_signature_warning (#44604)
Browse files Browse the repository at this point in the history
When building on Apple Silicon the stripping pass warns about breaking signing
despite not having signed the binary yet. Disable the warning
  • Loading branch information
sdmaclea committed Nov 12, 2020
1 parent 1393e83 commit e5dd1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/native/functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit e5dd1a4

Please sign in to comment.