mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This commits a bazel-based build system for C# using `rules_dotnet`. External dependencies are managed via `paket`, and updates to the generated bazel files are done via `./update-deps.sh`. We're providing our own (minimal) test runner for `xunit` tests.
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
common --enable_platform_specific_config
|
|
common --enable_bzlmod
|
|
# because we use --override_module with `%workspace%`, the lock file is not stable
|
|
common --lockfile_mode=off
|
|
|
|
# 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
|
|
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
|
|
|
|
build --repo_env=CC=clang --repo_env=CXX=clang++
|
|
|
|
build:linux --cxxopt=-std=c++20
|
|
build:macos --cxxopt=-std=c++20 --cpu=darwin_x86_64
|
|
build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor
|
|
|
|
# this requires developer mode, but is required to have pack installer functioning
|
|
startup --windows_enable_symlinks
|
|
common --enable_runfiles
|
|
|
|
common --registry=file:///%workspace%/misc/bazel/registry
|
|
common --registry=https://bcr.bazel.build
|
|
|
|
common --@rules_dotnet//dotnet/settings:strict_deps=false
|
|
|
|
try-import %workspace%/local.bazelrc
|