Skip to content

Commit 3fbce23

Browse files
authored
Merge pull request #1954 from apple/eng/PR-70237254
[cmake] Unconditionally set the force flag when codesigning
2 parents 31ff245 + ee91d80 commit 3fbce23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,9 +2037,10 @@ function(llvm_codesign name)
20372037
set(ARG_BUNDLE_PATH $<TARGET_FILE:${name}>)
20382038
endif()
20392039

2040-
if(ARG_FORCE)
2041-
set(force_flag "-f")
2042-
endif()
2040+
# ld64 now always codesigns the binaries it creates. Apply the force arg
2041+
# unconditionally so that we can - for example - add entitlements to the
2042+
# targets that need it.
2043+
set(force_flag "-f")
20432044

20442045
add_custom_command(
20452046
TARGET ${name} POST_BUILD

0 commit comments

Comments
 (0)