Skip to content

Commit

Permalink
Also collect clang resource directory with -no-canonical-prefixes
Browse files Browse the repository at this point in the history
`clang -print-resource-dir` without `-no-canonical-prefixes` returns a
different path than is actually used to include `asan_blacklist.txt` on
macOS.
  • Loading branch information
fmeum committed Nov 10, 2022
1 parent 99a8186 commit fcd8863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/unix_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _get_cxx_include_directories(repository_ctx, cc, lang_flag, additional_flags

if _is_compiler_option_supported(repository_ctx, cc, "-print-resource-dir"):
resource_dir = repository_ctx.execute(
[cc, "-print-resource-dir"],
[cc, "-print-resource-dir"] + additional_flags,
).stdout.strip() + "/share"
inc_directories.append(_prepare_include_path(repository_ctx, resource_dir))

Expand Down

0 comments on commit fcd8863

Please sign in to comment.