Skip to content

Commit 81c380a

Browse files
committed
Swift: Turn of caching and integrated driver in autobuild
* Caching cases compiler invocations to be omitted. You can try this for yourself by turning on caching while building the project from the `xcode-hello` integration test, then cleaning of the build artifacts and building the project again while caching is enabled. This yields a database that is practically empty. * The integrated driver causes compiler invocations to depend on modules shipped with Xcode. Those are unfortunately incompatible with our extractor.
1 parent 9aaf3f1 commit 81c380a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

swift/swift-autobuilder/BuildRunner.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ bool buildXcodeTarget(const XcodeTarget& target, bool dryRun) {
7979
argv.push_back(target.name);
8080
argv.push_back("CODE_SIGNING_REQUIRED=NO");
8181
argv.push_back("CODE_SIGNING_ALLOWED=NO");
82+
argv.push_back("COMPILATION_CACHE_ENABLE_CACHING=NO");
83+
argv.push_back("SWIFT_ENABLE_COMPILE_CACHE=NO");
84+
argv.push_back("SWIFT_USE_INTEGRATED_DRIVER=NO");
8285
return run_build_command(argv, dryRun);
8386
}
8487

0 commit comments

Comments
 (0)