Skip to content

Commit

Permalink
Merge pull request #2001 from phongt/iox-1547-additional-bazel-support
Browse files Browse the repository at this point in the history
Additional bazel support sanitizer
  • Loading branch information
FerdinandSpitzschnueffler authored Jul 24, 2023
2 parents efc697c + d13ce56 commit a0686bc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,30 @@ build --cxxopt="-std=c++14"
build:clang --action_env=BAZEL_COMPILER=clang
build:clang --action_env=CC=clang --action_env=CXX=clang++
build:clang --linkopt=-fuse-ld=lld

# asan gcc
build:asan --cxxopt="-fsanitize=address"
build:asan --cxxopt="-fno-omit-frame-pointer"
build:asan --cxxopt="-g" --cxxopt="-O2" --strip=never
build:asan --linkopt="-fsanitize=address"

# asan clang
build:clang_asan --config=clang --config=asan

# usan gcc
build:usan --cxxopt="-fsanitize=undefined"
build:usan --cxxopt="-fno-omit-frame-pointer"
build:usan --cxxopt="-g" --cxxopt="-O2" --strip=never
build:usan --linkopt="-fsanitize=undefined"

# usan clang
build:clang_usan --config=clang --config=usan

# tsan gcc
build:tsan --cxxopt="-fsanitize=thread"
build:tsan --cxxopt="-fno-omit-frame-pointer"
build:tsan --cxxopt="-g" --cxxopt="-O2" --strip=never
build:tsan --linkopt="-fsanitize=thread"

# tsan clang
build:clang_tsan --config=clang --config=tsan
1 change: 1 addition & 0 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

**Features:**

- Add bazel asan, usan, tsan build config [#1547](https://github.com/eclipse-iceoryx/iceoryx/issues/1547)
- Add bazel clang build config [#1998](https://github.com/eclipse-iceoryx/iceoryx/issues/1998)
- Add `command_line.hpp` which contains a macro builder to parse command line arguments quickly and safely [#1067](https://github.com/eclipse-iceoryx/iceoryx/issues/1067)
- optional inherits from FunctionalInterface, adds .expect() method [\#996](https://github.com/eclipse-iceoryx/iceoryx/issues/996)
Expand Down
1 change: 1 addition & 0 deletions iceoryx_posh/test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ cc_test(

cc_test(
name = "posh_integrationtests",
timeout = "long",
srcs = glob([
"integrationtests/*.cpp",
"integrationtests/*.hpp",
Expand Down

0 comments on commit a0686bc

Please sign in to comment.