Skip to content

Commit

Permalink
Add ubsan support (bazelbuild#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored May 28, 2021
1 parent baa0f0c commit ee864fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,13 @@ def compile_action_configs(
],
features = ["tsan"],
),
swift_toolchain_config.action_config(
actions = [swift_action_names.COMPILE],
configurators = [
swift_toolchain_config.add_arg("-sanitize=undefined"),
],
features = ["ubsan"],
),
]

#### Flags controlling how Swift/Clang modular inputs are processed
Expand Down

0 comments on commit ee864fd

Please sign in to comment.