8000 build-script: pass '-enforce-exclusivity=unchecked' to speed-up compi… · swiftlang/swift-syntax@c867fba · GitHub
[go: up one dir, main page]

Skip to content

Commit c867fba

Browse files
committed
build-script: pass '-enforce-exclusivity=unchecked' to speed-up compilation
1 parent aee69f4 commit c867fba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build-script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def get_swiftpm_invocation(spm_exec, build_dir, release):
157157

158158
# Swift compiler needs to know the module link name.
159159
swiftpm_call.extend(['-Xswiftc', '-module-link-name', '-Xswiftc', get_installed_name()])
160+
161+
# To speed up compilation.
162+
swiftpm_call.extend(['-Xswiftc', '-enforce-exclusivity=unchecked'])
160163
return swiftpm_call
161164

162165

0 commit comments

Comments
 (0)
0