Skip to content

Simple test to do clang/asan builds on gz-math#647

Merged
ahcorde merged 3 commits intogz-math8from
mjcarroll/bazel_asan
Nov 15, 2024
Merged

Simple test to do clang/asan builds on gz-math#647
ahcorde merged 3 commits intogz-math8from
mjcarroll/bazel_asan

Conversation

@mjcarroll
Copy link
Copy Markdown

Inspired by robotlocomotion/drake's approach

Inspired by robotlocomotion/drake's approach

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
build:clang --host_action_env=CC=clang-15
build:clang --host_action_env=CXX=clang++-15

### ASan build. Clang only. ###
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider adding that both --config asan --config clang need to be passed to bazel

@@ -0,0 +1,5 @@
sh_binary(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider adding a docstring on how this can be run locally
bazel run --config asan --config clang tools:asan?

@ahcorde ahcorde enabled auto-merge (squash) November 15, 2024 21:31
@ahcorde ahcorde merged commit 757ead0 into gz-math8 Nov 15, 2024
@ahcorde ahcorde deleted the mjcarroll/bazel_asan branch November 15, 2024 21:54
@mjcarroll
Copy link
Copy Markdown
Author

whoops. @ahcorde I think I actually found a better way of doing this. I'm going to revert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants