Skip to content

Commit dbd89c4

Browse files
committed
don't set both -enforce-exclusivity=unchecked and none
Exclusivity checking has high runtime performance cost, which is undesirable for embedded systems. Specifying both options doesn't make sense; opt for -enforce-exclusivity=unchecked which retains static analysis but disables runtime checking. [1] [1] https://www.swift.org/blog/swift-5-exclusivity/
1 parent a6e7ac2 commit dbd89c4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

classes/swift.bbclass

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ python swift_do_configure() {
150150
"${STAGING_DIR_NATIVE}/usr/bin",
151151
152152
"-enforce-exclusivity=unchecked",
153-
"-enforce-exclusivity=none",
154153
155154
"-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/linux",
156155

0 commit comments

Comments
 (0)