Skip to content

Commit d419749

Browse files
committed
Swift: fix missing extraction of function bodies in SPM builds
For some reason `-experimental-skip-non-inlinable-function-bodies-without-types` is passed to the frontend, which will skip extraction of most bodies. By suppressing that option the problem goes away.
1 parent 6651c94 commit d419749

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)