Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Oct 8, 2023
1 parent 221fcbf commit ab64793
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/cc_asan_test/cc_asan_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ cc_asan_test, _cc_asan_test_internal = with_cfg(
native.cc_test,
).extend(
"copt",
select({
"@rules_cc//cc/compiler:msvc-cl": ["/fsanitize=address"],
"//conditions:default": ["-fsanitize=address"],
}),
["-fsanitize=address"],
).extend(
"linkopt",
select({
# link.exe doesn't require or recognize -fsanitize=address and would emit a warning.
"@rules_cc//cc/compiler:msvc-cl": [],
"//conditions:default": ["-fsanitize=address"],
}),
Expand Down

0 comments on commit ab64793

Please sign in to comment.