Skip to content

Commit 79fd35a

Browse files
committed
Swift: Remove flags related to explict modules in the tracer config
We have not found a good way to support these.
1 parent 06d0d48 commit 79fd35a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

swift/tools/tracing-config.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ function RegisterExtractorPack(id)
5353
strip_unsupported_arg(args, '-stack-check', 0)
5454
strip_unsupported_arg(args, '-experimental-skip-non-inlinable-function-bodies-without-types', 0)
5555
strip_unsupported_clang_arg(args, '-ivfsstatcache', 1)
56+
-- The four args below are removed to workaround version mismatches due to recent versions
57+
-- of Xcode defaulting to explicit modules:
58+
strip_unsupported_arg(args, '-disable-implicit-swift-modules', 0)
59+
strip_unsupported_clang_arg(args, '-fno-implicit-modules', 0)
60+
strip_unsupported_clang_arg(args, '-fno-implicit-module-maps', 0)
61+
strip_unsupported_arg(args, '-explicit-swift-module-map-file', 1)
5662
end
5763

5864
-- xcodebuild does not always specify the -resource-dir in which case the compiler falls back

0 commit comments

Comments
 (0)