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 with non-Apple clang.

Closes #16730.

PiperOrigin-RevId: 489475662
Change-Id: If17f347d76f86e0ec5804f9e8789f44f46ab27b4
  • Loading branch information
fmeum authored and copybara-github committed Nov 18, 2022
1 parent 66c22f4 commit 8349c95
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 8349c95

Please sign in to comment.