Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn committed Apr 22, 2024
1 parent 6fbc1f2 commit a60aa6d
Show file tree
Hide file tree
Showing 2,365 changed files with 118,212 additions and 42,382 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ From left to right: Refraction, ambient occlusion and reflection:

![Refraction, ambient occlusion and reflection](docs/images/header.svg)

Quadtree intersection of 2d triangle meshes:
Quadtree intersection of 2D triangle meshes:

![Quadtree](docs/images/quadtree_StopSplitIfAtLeastTwoChildsHaveAsManySubShapesAsParent.svg)

Expand Down
72 changes: 59 additions & 13 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ jobs:
steps:
- template: devertexwahn/ci/macOS-13-apple-clang14.yaml

# macOS 14/M1 is still not supported on Azure Pipelines
# consult documentation for Microsoft-hosted agents:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml
#- job: MacOSAppleClang14Sonoma
# displayName: "Apple Clang14 on macOS 14 (Sonoma)"
# pool:
# vmImage: 'macOS-14'
# steps:
# - template: devertexwahn/ci/macOS-14-apple-clang14.yaml


#- job: Ubuntu20Clang14
# displayName: "Clang14 on Ubuntu 20.04"
Expand All @@ -31,27 +41,64 @@ jobs:
- job: Ubuntu20GCC9Fast
displayName: "GCC9 fast on Ubuntu 20.04"
pool:
#name: Default
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-fast.yaml

- job: Ubuntu20GCC9Opt
displayName: "GCC9 opt on Ubuntu 20.04"
pool:
#name: Default
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-opt.yaml

- job: Ubuntu20GCC9Debug
displayName: "GCC9 debug on Ubuntu 20.04"
- job: Ubuntu20GCC9DebugPart1
displayName: "GCC9 debug on Ubuntu 20.04 (Part 1)"
pool:
#name: Default
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-dbg.yaml
- template: devertexwahn/ci/ubuntu-20.04-gcc9-dbg-part1.yaml

- job: Ubuntu20GCC9DebugPart2
displayName: "GCC9 debug on Ubuntu 20.04 (Part 2)"
pool:
vmImage: 'ubuntu-20.04'
steps:
- template: devertexwahn/ci/ubuntu-20.04-gcc9-dbg-part2.yaml

- job: Ubuntu22BazelQuery
displayName: "Bazel query on Ubuntu 22.04"
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-bazel-query.yaml

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

- job: Ubuntu22Coverage
displayName: "Coverage with LCOV/GCC11 on Ubuntu 22.04"
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-coverage.yaml
#- job: Ubuntu22Docker
# displayName: "aarch64 Docker"
# pool:
# vmImage: 'ubuntu-22.04'
# steps:
# - template: devertexwahn/ci/ubuntu-22.04-docker-aarch64.yaml

- job: Ubuntu22Bzlmod
displayName: "Bzlmod on Ubuntu 22.04"
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-bzlmod.yaml

- job: Ubuntu22GCC11
displayName: "GCC11 fast opt on Ubuntu 22.04"
Expand All @@ -60,20 +107,19 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-fast-opt.yaml

- job: Ubuntu22GCC11Debug
displayName: "GCC11 dbg on Ubuntu 22.04"
- job: Ubuntu22GCC11DebugPart1
displayName: "GCC11 dbg on Ubuntu 22.04 (Part 1)"
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-dbg.yaml
- template: devertexwahn/ci/ubuntu-22.04-gcc11-dbg-part1.yaml

- job: Ubuntu22Clang14
displayName: "Clang14 on Ubuntu 22.04"
- job: Ubuntu22GCC11DebugPart2
displayName: "GCC11 dbg on Ubuntu 22.04 (Part 2)"
pool:
vmImage: 'ubuntu-22.04'
steps:
- template: devertexwahn/ci/ubuntu-22.04-clang14.yaml

- template: devertexwahn/ci/ubuntu-22.04-gcc11-dbg-part2.yaml

# Visual Studio 2019
- job: VisualStudio2019Dbg
Expand Down
52 changes: 32 additions & 20 deletions devertexwahn/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# SPDX-FileCopyrightText: Copyright 2022-2023 Julian Amann <[email protected]>
# SPDX-FileCopyrightText: Copyright 2022-2024 Julian Amann <[email protected]>
# SPDX-License-Identifier: Apache-2.0
#

Expand All @@ -13,10 +13,9 @@
# Bzlmod
#-------------------------------------------------------------------------------------

common --enable_bzlmod
#common --registry=file:///%workspace%/registry
common --registry=https://raw.githubusercontent.com/Vertexwahn/bazel-registry/main/ # Check if this makes Windows happy
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
#common --registry=file:///%workspace%/registry # Does not work on Windows 11 + Bazel 6.5.0
#common --registry=https://vertexwahn.de/registry
common --registry=https://raw.githubusercontent.com/Vertexwahn/bazel-registry/main/ # Needed for Boost
common --registry=https://bcr.bazel.build


Expand All @@ -25,11 +24,12 @@ common --registry=https://bcr.bazel.build
#-------------------------------------------------------------------------------------

# macOS (e.g. Clang 14.0.0)
build:macos --cxxopt=-std=c++2b # see https://clang.llvm.org/cxx_status.html
build:macos --cxxopt=-Wall
build:macos --cxxopt=-std=c++2b # see https://clang.llvm.org/cxx_status.html
build:macos --cxxopt=-Wall # Turn on all warnings
build:macos --define compiler=macos
build:macos --noincompatible_enable_cc_toolchain_resolution # disable LLVM toolchain
#build:macos --cxxopt=-Werror # Commented out because of Embree
##build:macos --cxxopt=-Wextra
#build:macos --cxxopt=-Wextra
#build:macos --spawn_strategy=local

# Xcode 15 has some compiler issues - therefore there is this special config
Expand All @@ -38,20 +38,17 @@ build:macos_xcode15 --linkopt=-ld_classic # Workaround for Xcode 15 linker bug,

# macOS Intel (config used in CI jobs)
build:clang14_macos --cxxopt=-std=c++20
#build:clang14 --cxxopt=-mavx
#build:clang14 --cxxopt=-mavx2
#build:clang14 --cxxopt=-msse4.2
#build:clang14 --cxxopt=-Werror
build:clang14_macos --incompatible_enable_cc_toolchain_resolution
build:clang14_macos --noincompatible_enable_cc_toolchain_resolution # disable LLVM toolchain
build:clang14_macos --cxxopt=-mwaitpkg
build:clang14_macos --define compiler=clang14_macos

# macOS M1 (config is used on local MacBook M1 Pro)
build:clang14_macos_m1 --cxxopt=-std=c++20
build:clang14_macos_m1 --incompatible_enable_cc_toolchain_resolution
build:clang14_macos_m1 --linkopt=-ld_classic # Workaround for Xcode 15 linker bug, see for instance https://github.com/godotengine/godot/pull/81968/files
#build:clang14_macos_m1 --cxxopt=-mwaitpkg # lead to compilation issues on local M1 macBook
build:clang14_macos_m1 --define compiler=clang14_macos_m1
# not used anymore? Todo: Remove this config if it is not needed anymore
## macOS M1 (config is used on local MacBook M1 Pro)
#build:clang14_macos_m1 --cxxopt=-std=c++20
#build:clang14_macos_m1 --incompatible_enable_cc_toolchain_resolution
#build:clang14_macos_m1 --linkopt=-ld_classic # Workaround for Xcode 15 linker bug, see for instance https://github.com/godotengine/godot/pull/81968/files
##build:clang14_macos_m1 --cxxopt=-mwaitpkg # lead to compilation issues on local M1 macBook
#build:clang14_macos_m1 --define compiler=clang14_macos_m1

# Todo: Add apple_debug config
# https://github.com/RobotLocomotion/drake/search?q=apple_debug
Expand All @@ -60,6 +57,7 @@ build:clang14_macos_m1 --define compiler=clang14_macos_m1
build:gcc9 --cxxopt=-std=c++2a
build:gcc9 --cxxopt=-Wall
build:gcc9 --define compiler=gcc9
build:gcc9 --noincompatible_enable_cc_toolchain_resolution # disable LLVM toolchain
#build:gcc9 --cxxopt=-Werror # blocked by googletest
##build:gcc9 --cxxopt=-Wextra

Expand All @@ -68,12 +66,13 @@ build:remote_gcc9 --cxxopt=-Werror
build:remote_gcc9 --define compiler=remote_gcc9
##build:remote_gcc9 --cxxopt=-Wextra

# GCC 11.3
# GCC 11.4
#build:gcc11 --cxxopt=-std=c++23 # blocked by emsdk
build:gcc11 --cxxopt=-std=c++20
build:gcc11 --cxxopt=-Wall
build:gcc11 --define compiler=gcc11
build:gcc11 --cxxopt=-fpermissive # Needed for fmt
build:gcc11 --noincompatible_enable_cc_toolchain_resolution # disable LLVM toolchain
#build:gcc11 --cxxopt=-Werror
#build:gcc11 --cxxopt=-Wno-volatile # blocked by emsdk
##build:gcc11 --cxxopt=-Wextra
Expand All @@ -97,6 +96,19 @@ build:clang14 --features=-libtool
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
# 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

# MinGW
build:mingw --cxxopt=-std=c++2a
#build:mingw --cxxopt=-Wall
Expand Down
2 changes: 1 addition & 1 deletion devertexwahn/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.1.1
Loading

0 comments on commit a60aa6d

Please sign in to comment.