Skip to content

Commit 89ca7e2

Browse files
authored
Merge pull request github#10955 from github/redsun82/swift-fix-missing-bodies
Swift: fix missing extraction of function bodies in SPM builds
2 parents ef5132b + d419749 commit 89ca7e2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| Sources/hello-world/hello_world.swift:4:12:5:5 | init() | Sources/hello-world/hello_world.swift:4:19:5:5 | { ... } |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import swift
2+
3+
from StructDecl struct, ConstructorDecl decl, BraceStmt body
4+
where struct.getName() = "hello_world" and decl = struct.getAMember() and body = decl.getBody()
5+
select decl, body

swift/tools/tracing-config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function RegisterExtractorPack(id)
2929
strip_unsupported_arg(args, '-emit-localized-strings', 0)
3030
strip_unsupported_arg(args, '-emit-localized-strings-path', 1)
3131
strip_unsupported_arg(args, '-stack-check', 0)
32+
strip_unsupported_arg(args, '-experimental-skip-non-inlinable-function-bodies-without-types', 0)
3233
end
3334

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

0 commit comments

Comments
 (0)