You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: swift/README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
+
# Swift on CodeQL
2
+
1
3
## Warning
2
4
3
-
The Swift codeql package is an experimental and unsupported work in progress.
5
+
The Swift CodeQL package is an experimental and unsupported work in progress.
4
6
5
-
## Usage
7
+
## Building the Swift extractor
6
8
7
9
First ensure you have Bazel installed, for example with
8
10
@@ -13,16 +15,17 @@ brew install bazelisk
13
15
then from the `ql` directory run
14
16
15
17
```bash
16
-
bazel run //swift:create-extractor-pack
18
+
bazel run //swift:create-extractor-pack# --cpu=darwin_x86_64 # Uncomment on Arm-based Macs
17
19
```
18
20
19
21
which will install `swift/extractor-pack`.
20
22
21
-
Using `--search-path=swift/extractor-pack` will then pick up the Swift extractor. You can also use
22
-
`--search-path=.`, as the extractor pack is mentioned in the root `codeql-workspace.yml`.
23
-
24
23
Notice you can run `bazel run :create-extractor-pack` if you already are in the `swift` directory.
25
24
25
+
Using `codeql ... --search-path=swift/extractor-pack` will then pick up the Swift extractor. You can also use
26
+
`--search-path=.`, as the extractor pack is mentioned in the root `codeql-workspace.yml`. Alternatively, you can
27
+
set up the search path in [the per-user CodeQL configuration file](https://codeql.github.com/docs/codeql-cli/specifying-command-options-in-a-codeql-configuration-file/#using-a-codeql-configuration-file).
0 commit comments