mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user