mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Also remove the tentative way compilation was expected to be fixed on macOS ARM without really working. In the future we will create universal binaries (which requires compiling our prebuilt package for ARM as well), but until then we must require the developer to pass `--cpu=darwin_x86_64` to the build command when building on an ARM macOS platform like the M1. This will be printed out explicitly now if it's not the case.
Warning
The Swift codeql package is an experimental and unsupported work in progress.
Usage
First ensure you have Bazel installed, for example with
brew install bazelisk
then from the ql directory run
bazel run //swift:create-extractor-pack
which will install swift/extractor-pack.
Using --search-path=swift/extractor-pack will then pick up the Swift extractor. You can also use
--search-path=., as the extractor pack is mentioned in the root codeql-workspace.yml.
Notice you can run bazel run :create-extractor-pack if you already are in the swift directory.
Code generation
Run
bazel run //swift/codegen
to update generated files. This can be shortened to
bazel run codegen if you are in the swift directory.