2024-02-22 13:08:50 +03:00
|
|
|
common --enable_platform_specific_config
|
|
|
|
common --enable_bzlmod
|
2024-02-22 13:38:45 +03:00
|
|
|
# because we use --override_module with `%workspace%`, the lock file is not stable
|
|
|
|
common --lockfile_mode=off
|
2023-06-16 19:24:04 +03:00
|
|
|
|
2024-02-22 13:08:50 +03:00
|
|
|
# when building from this repository in isolation, the internal repository will not be found at ..
|
|
|
|
# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so
|
|
|
|
# that we can build things that do not rely on that
|
2024-02-21 18:48:23 +03:00
|
|
|
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
|
2024-02-12 17:58:43 +03:00
|
|
|
|
2023-06-16 19:24:04 +03:00
|
|
|
build --repo_env=CC=clang --repo_env=CXX=clang++
|
|
|
|
|
2024-05-24 12:07:29 +03:00
|
|
|
build:linux --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
|
2024-05-23 11:44:06 +03:00
|
|
|
# we currently cannot built the swift extractor for ARM
|
2024-05-24 12:07:29 +03:00
|
|
|
build:macos --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 --copt=-arch --copt=x86_64 --linkopt=-arch --linkopt=x86_64
|
|
|
|
build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor --host_cxxopt=/std:c++20 --host_cxxopt=/Zc:preprocessor
|
2022-04-08 11:06:51 +03:00
|
|
|
|
2024-05-03 18:44:29 +03:00
|
|
|
# this requires developer mode, but is required to have pack installer functioning
|
2024-05-06 15:55:35 +03:00
|
|
|
startup --windows_enable_symlinks
|
|
|
|
common --enable_runfiles
|
2024-05-03 18:44:29 +03:00
|
|
|
|
2024-05-27 17:09:42 +03:00
|
|
|
# with the above, we can avoid building python zips which is the default on windows as that's expensive
|
|
|
|
build --nobuild_python_zip
|
|
|
|
|
2024-04-29 14:31:48 +03:00
|
|
|
common --registry=file:///%workspace%/misc/bazel/registry
|
|
|
|
common --registry=https://bcr.bazel.build
|
|
|
|
|
2024-02-02 13:01:02 +03:00
|
|
|
common --@rules_dotnet//dotnet/settings:strict_deps=false
|
|
|
|
|
2022-04-08 11:06:51 +03:00
|
|
|
try-import %workspace%/local.bazelrc
|