Skip to content

Commit e6e5f0d

Browse files
authored
Merge pull request #21992 from jketema/jketema/swift-filter
Swift: Filter more clang options not recognized by off-the-shelf clang
2 parents 3654205 + 2eb9c54 commit e6e5f0d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import swift
22

33
from File f
4-
where exists(f.getRelativePath()) or f instanceof UnknownFile
4+
where
5+
(exists(f.getRelativePath()) or f instanceof UnknownFile) and
6+
not f.getBaseName() = "<module-includes>"
57
select f

swift/tools/tracing-config.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function RegisterExtractorPack(id)
5454
strip_unsupported_arg(args, '-experimental-skip-non-inlinable-function-bodies-without-types', 0)
5555
strip_unsupported_clang_arg(args, '-ivfsstatcache', 1)
5656
strip_unsupported_clang_arg(args, '-fno-odr-hash-protocols', 0)
57+
strip_unsupported_clang_arg(args, '-fobjc-msgsend-selector-stubs', 0)
58+
strip_unsupported_clang_arg(args, '-fstack-check', 0)
5759
strip_unsupported_clang_arg(args, '-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation', 0)
5860
strip_unsupported_clang_arg(args, '-clang-vendor-feature=+enableAggressiveVLAFolding', 0)
5961
strip_unsupported_clang_arg(args, '-clang-vendor-feature=+revert09abecef7bbf', 0)

0 commit comments

Comments
 (0)