Skip to content

Commit a104600

Browse files
authored
Merge branch 'main' into cpp/use-flow-state-inout-barriers
2 parents 53dbfcb + 7de34e4 commit a104600

File tree

29,400 files changed

+2772344
-891771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

29,400 files changed

+2772344
-891771
lines changed

.bazelrc

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
11
common --enable_platform_specific_config
2+
# because we use --override_module with `%workspace%`, the lock file is not stable
3+
common --lockfile_mode=off
4+
5+
# Build release binaries by default, can be overwritten to in local.bazelrc and set to `fastbuild` or `dbg`
6+
build --compilation_mode opt
7+
8+
# when building from this repository in isolation, the internal repository will not be found at ..
9+
# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so
10+
# that we can build things that do not rely on that
11+
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
212

313
build --repo_env=CC=clang --repo_env=CXX=clang++
414

5-
build:linux --cxxopt=-std=c++20
6-
build:macos --cxxopt=-std=c++20 --cpu=darwin_x86_64
7-
build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor
15+
# print test output, like sembuild does.
16+
# Set to `errors` if this is too verbose.
17+
test --test_output all
18+
# we use transitions that break builds of `...`, so for `test` to work with that we need the following
19+
test --build_tests_only
20+
21+
# this requires developer mode, but is required to have pack installer functioning
22+
startup --windows_enable_symlinks
23+
common --enable_runfiles
24+
25+
# with the above, we can avoid building python zips which is the default on windows as that's expensive
26+
build --nobuild_python_zip
27+
28+
common --registry=file:///%workspace%/misc/bazel/registry
29+
common --registry=https://bcr.bazel.build
30+
31+
common --@rules_dotnet//dotnet/settings:strict_deps=false
32+
33+
# we only configure a nightly toolchain
34+
common --@rules_rust//rust/toolchain/channel=nightly
35+
36+
# Reduce this eventually to empty, once we've fixed all our usages of java, and https://github.com/bazel-contrib/rules_go/issues/4193 is fixed
37+
common --incompatible_autoload_externally="+@rules_java,+@rules_shell"
38+
39+
build --java_language_version=17
40+
build --tool_java_language_version=17
41+
build --tool_java_runtime_version=remotejdk_17
42+
build --java_runtime_version=remotejdk_17
43+
build --@rules_python//python/config_settings:python_version=3.12
844

945
try-import %workspace%/local.bazelrc

.bazelrc.internal

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# this file should contain bazel settings required to build things from `semmle-code`
2+
3+
common --registry=file:///%workspace%/ql/misc/bazel/registry
4+
common --registry=https://bcr.bazel.build
5+
6+
# See bazelbuild/rules_dotnet#413: strict_deps in C# also appliy to 3rd-party deps, and when we pull
7+
# in (for example) the xunit package, there's no code in this at all, it just depends transitively on
8+
# its implementation packages without providing any code itself.
9+
# We either can depend on internal implementation details, or turn of strict deps.
10+
common --@rules_dotnet//dotnet/settings:strict_deps=false
11+
12+
build --@rules_python//python/config_settings:python_version=3.12

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.3.1
1+
8.1.1

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true

.devcontainer/Dockerfile.codespaces

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
USER root
4+
# Install needed packages according to https://codeql.github.com/docs/codeql-overview/system-requirements/
5+
# most come from the base image, but we need to install some additional ones
6+
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y sudo man-db python3.12 npm unminimize
7+
RUN yes | unminimize

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"ms-vscode.test-adapter-converter",
88
"slevesque.vscode-zipexplorer"
99
],
10+
"build": {
11+
// Path is relative to the devcontainer.json file.
12+
"dockerfile": "Dockerfile.codespaces"
13+
},
1014
"settings": {
1115
"files.watcherExclude": {
1216
"**/target/**": true

.devcontainer/swift/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

.devcontainer/swift/devcontainer.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.devcontainer/swift/root.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

.devcontainer/swift/update-codeql.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)