Skip to content

Commit a822152

Browse files
authored
Merge pull request #373 from edymtt/use-separate-modulecache
[build-script-helper] Use separate module cache for builds
2 parents db1e474 + e255913 commit a822152

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ def build_using_cmake(args, toolchain_bin, build_dir):
381381
swift_flags.append('-Onone')
382382
swift_flags.append('-DDEBUG')
383383

384+
# Ensure we are not sharing the module cache with concurrent builds in CI
385+
swift_flags.append('-module-cache-path "{}"'.format(os.path.join(build_dir, 'module-cache')))
386+
384387
base_cmake_flags = []
385388
for target in targets:
386389
swift_flags.append('-target %s' % target)

0 commit comments

Comments
 (0)