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.
This commit is contained in:
Paolo Tranquilli
2022-10-24 17:11:13 +02:00
parent 6651c9447e
commit d419749eb2

View File

@@ -29,6 +29,7 @@ function RegisterExtractorPack(id)
strip_unsupported_arg(args, '-emit-localized-strings', 0)
strip_unsupported_arg(args, '-emit-localized-strings-path', 1)
strip_unsupported_arg(args, '-stack-check', 0)
strip_unsupported_arg(args, '-experimental-skip-non-inlinable-function-bodies-without-types', 0)
end
-- xcodebuild does not always specify the -resource-dir in which case the compiler falls back