Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional bazel support sanitizer #2001

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
FerdinandSpitzschnueffler marked this conversation as resolved.
Show resolved Hide resolved
- 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