Skip to content

Commit

Permalink
fix: sanitizers with Fortran (#74)
Browse files Browse the repository at this point in the history
Signed-off-by: Thulio Ferraz Assis <[email protected]>
  • Loading branch information
f0rmiga authored Jul 4, 2022
1 parent 9381390 commit 5ea1bfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules_fortran/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _get_configuration(ctx):
"fortran_compile_flags",
"fortran_link_flags",
"no_libstdcxx",
] + ctx.attr.features
] + ctx.features
fortran_toolchain = ctx.toolchains[ctx.attr._fortran_toolchain_type.label].cc
feature_configuration = cc_common.configure_features(
cc_toolchain = fortran_toolchain,
Expand Down
2 changes: 1 addition & 1 deletion toolchain/cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def _sanitizer_feature(sanitizer):
name = sanitizer.name,
flag_sets = [
flag_set(
actions = all_compile_actions,
actions = all_compile_actions + [FORTRAN_ACTION_NAMES.fortran_compile],
flag_groups = [
flag_group(
flags = sanitizer.cflags,
Expand Down

0 comments on commit 5ea1bfb

Please sign in to comment.