File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
11
11
build --repo_env=CC=clang --repo_env=CXX=clang++
12
12
13
13
build:linux --cxxopt=-std=c++20
14
- build:macos --cxxopt=-std=c++20 --cpu=darwin_x86_64
14
+ # we currently cannot built the swift extractor for ARM
15
+ build:macos --cxxopt=-std=c++20 --copt=-arch --copt=x86_64 --linkopt=-arch --linkopt=x86_64
15
16
build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor
16
17
17
18
# this requires developer mode, but is required to have pack installer functioning
Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ brew install bazelisk
16
16
then from the ` ql ` directory run
17
17
18
18
``` bash
19
- bazel run //swift:create-extractor-pack # --cpu=darwin_x86_64 # Uncomment on Arm-based Macs
19
+ bazel run //swift:create-extractor-pack
20
+ ```
21
+
22
+ If you are running on macOS and you encounter errors mentioning ` XXX is unavailable: introduced in macOS YY.ZZ ` ,
23
+ you will need to run this from the root of your ` codeql ` checkout:
24
+
25
+ ``` bash
26
+ echo common --macos_sdk_version=$( sw_vers --productVersion) >> local.bazelrc
20
27
```
21
28
22
29
which will install ` swift/extractor-pack ` .
You can’t perform that action at this time.
0 commit comments