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
1111build --repo_env=CC=clang --repo_env=CXX=clang++
1212
1313build: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
1516build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor
1617
1718# 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
1616then from the ` ql ` directory run
1717
1818``` 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
2027```
2128
2229which will install ` swift/extractor-pack ` .
You can’t perform that action at this time.
0 commit comments