Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 59d39ea6da94675e01ad30a3f2606dfdc0755f64
  • Loading branch information
Vertexwahn committed Jan 19, 2025
1 parent 3661711 commit e6c2982
Show file tree
Hide file tree
Showing 19 changed files with 83 additions and 78 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-24.04-bazel-query.yaml

- job: Ubuntu22Clang16
displayName: "Clang16 on Ubuntu 22.04"
- job: Ubuntu22Clang19
displayName: "Clang19 on Ubuntu 24.04"
pool:
vmImage: 'ubuntu-22.04'
vmImage: 'ubuntu-24.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-clang16.yaml
- template: devertexwahn/ci/ubuntu-24.04-clang19.yaml

- job: Ubuntu24Coverage
displayName: "Coverage with LCOV/GCC13 on Ubuntu 24.04"
Expand Down
20 changes: 10 additions & 10 deletions devertexwahn/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ build:clang14 --cxxopt=-mwaitpkg
build:clang14 --define compiler=clang14

# Clang 16.0.0 (config is used on Ubuntu)
build:clang16 --cxxopt=-std=c++20
#build:clang16 --cxxopt=-mavx
#build:clang16 --cxxopt=-mavx2
#build:clang16 --cxxopt=-msse4.2
#build:clang16 --cxxopt=-Werror
build:clang16 --incompatible_enable_cc_toolchain_resolution
build:clang19 --cxxopt=-std=c++20
#build:clang19 --cxxopt=-mavx
#build:clang19 --cxxopt=-mavx2
#build:clang19 --cxxopt=-msse4.2
#build:clang19 --cxxopt=-Werror
build:clang19 --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
# Tell Bazel to pass the right flags for llvm-ar, not libtool. Only needed if you are building on darwin.
# See https://github.com/bazelbuild/bazel/blob/5c75d0acec21459bbb13520817e3806e1507e907/tools/cpp/unix_cc_toolchain_config.bzl#L1000-L1024
build:clang16 --features=-libtool
build:clang16 --cxxopt=-mwaitpkg
build:clang16 --define compiler=clang14
build:clang19 --features=-libtool
build:clang19 --cxxopt=-mwaitpkg
build:clang19 --define compiler=clang19

# MinGW
build:mingw --cxxopt=-std=c++2a
Expand Down Expand Up @@ -171,7 +171,7 @@ build:optimized build --copt=-O3
# More details here: https://github.com/storypku/bazel_iwyu/pull/12
#build:iwyu --@bazel_iwyu//:iwyu_mappings=@my_repo//tools:iwyu_mappings
build:iwyu --config=gcc11
#build:iwyu --config=clang16
#build:iwyu --config=clang19
build:iwyu --aspects @bazel_iwyu//bazel/iwyu:iwyu.bzl%iwyu_aspect
build:iwyu --output_groups=report
build:iwyu --build_tag_filters=-no-iwyu # To include everything except the rules tagged with "no-iwyu"
Expand Down
4 changes: 2 additions & 2 deletions devertexwahn/ci/macOS-13-apple-clang15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
steps:
- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -18,7 +18,7 @@ steps:

- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
sw_vers
Expand Down
4 changes: 2 additions & 2 deletions devertexwahn/ci/macOS-14-apple-clang15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
steps:
- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -18,7 +18,7 @@ steps:

- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
sw_vers
Expand Down
4 changes: 2 additions & 2 deletions devertexwahn/ci/macOS-14-clang14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
steps:
- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -18,7 +18,7 @@ steps:

- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
Expand Down
4 changes: 2 additions & 2 deletions devertexwahn/ci/macOS-15-apple-clang16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
steps:
- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -18,7 +18,7 @@ steps:

- script: |
df -h
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
sw_vers
Expand Down
6 changes: 3 additions & 3 deletions devertexwahn/ci/ubuntu-20.04-clang14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -24,7 +24,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand Down Expand Up @@ -56,4 +56,4 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
4 changes: 2 additions & 2 deletions devertexwahn/ci/ubuntu-22.04-cppcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -25,7 +25,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
# Note: apt-get cannot be used to install Cppcheck since it has only an old version that give some false positives
#- script: |
Expand Down
10 changes: 5 additions & 5 deletions devertexwahn/ci/ubuntu-22.04-gcc11-dbg-part1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -25,7 +25,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -44,7 +44,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -58,8 +58,8 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
10 changes: 5 additions & 5 deletions devertexwahn/ci/ubuntu-22.04-gcc11-dbg-part2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -25,7 +25,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -44,7 +44,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -53,7 +53,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -62,4 +62,4 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
6 changes: 3 additions & 3 deletions devertexwahn/ci/ubuntu-22.04-gcc11-fast-opt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -25,7 +25,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand Down Expand Up @@ -64,4 +64,4 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
10 changes: 5 additions & 5 deletions devertexwahn/ci/ubuntu-24.04-bazel-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -25,7 +25,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -44,7 +44,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -53,7 +53,7 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
Expand All @@ -62,4 +62,4 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#
# SPDX-FileCopyrightText: Copyright 2022-2023 Julian Amann <[email protected]>
# SPDX-FileCopyrightText: Copyright 2022-2025 Julian Amann <[email protected]>
# SPDX-License-Identifier: Apache-2.0
#

# Clang 14 on Ubuntu 22.04
# Make sure we can build with Clang 14 in all different compilation modes
# Clang 19 on Ubuntu 24.04
# Make sure we can build with Clang 16 in all different compilation modes

steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- checkout: self
clean: true
Expand All @@ -25,51 +25,56 @@ steps:
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
- script: |
cd devertexwahn
bazel version
displayName: 'Show Bazel version'
displayName: "Show Bazel version"
- script: |
sudo apt-get update
sudo apt-get -y install libncurses5 # needed by Clang
displayName: "Install libncurses5"
- script: |
cd devertexwahn
bazel run --config=clang19 --compilation_mode=dbg -- //tools/compiler_feature_dump
displayName: "Compiler feature dump"
# fastbuild
- script: |
cd devertexwahn
bazel build --config=clang16 -- //...
bazel build --config=clang19 -- //...
displayName: 'Bazel build clang14-fastbuild'
- script: |
cd devertexwahn
bazel test --config=clang16 -- //...
bazel test --config=clang19 -- //...
displayName: 'Bazel test clang14-fastbuild'
# dbg
- script: |
cd devertexwahn
bazel build --config=clang16 --compilation_mode=dbg -- //...
bazel build --config=clang19 --compilation_mode=dbg -- //...
displayName: 'Bazel build clang14-dbg'
- script: |
cd devertexwahn
bazel test --config=clang16 --compilation_mode=dbg -- //...
bazel test --config=clang19 --compilation_mode=dbg -- //...
displayName: 'Bazel test clang14-dbg'
- script: |
cd devertexwahn
bazel build --config=clang16 --compilation_mode=opt -- //...
bazel build --config=clang19 --compilation_mode=opt -- //...
displayName: 'Bazel build clang14-opt'
- script: |
cd devertexwahn
bazel test --config=clang16 --compilation_mode=opt -- //...
bazel test --config=clang19 --compilation_mode=opt -- //...
displayName: 'Bazel test clang14-opt'
- script: |
df
displayName: 'Show disk space'
displayName: "Show disk space"
Loading

0 comments on commit e6c2982

Please sign in to comment.