Skip to content

Commit a57e5e0

Browse files
podtserkovskiyfacebook-github-bot
authored andcommitted
Apply race/asan flags when filter source files
Summary: Bug repot: https://fb.workplace.com/groups/codegophers/permalink/29592458917042675/ Reviewed By: RollerMatic Differential Revision: D83609821 fbshipit-source-id: 9c11ea46ae1722ef1aafc439fe0d922fa1d42dd8
1 parent 806b01e commit a57e5e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

prelude/go/go_list.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def go_list(ctx: AnalysisContext, pkg_name: str, srcs: list[Artifact], package_r
8181
"-e",
8282
"-json=" + ",".join(required_felds),
8383
["-tags", ",".join(all_tags) if all_tags else []],
84+
["-race"] if go_toolchain.race else [],
85+
["-asan"] if go_toolchain.asan else [],
8486
".",
8587
]
8688

0 commit comments

Comments
 (0)