Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also collect clang resource directory with -no-canonical-prefixes #16730

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Nov 10, 2022

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.

@fmeum fmeum force-pushed the fix-print-resource-dir branch from 3bdb5b0 to afa197f Compare November 10, 2022 13:01
`clang -print-resource-dir` without `-no-canonical-prefixes` returns a
different path than is actually used to include `asan_blacklist.txt` on
macOS.
@fmeum fmeum force-pushed the fix-print-resource-dir branch from afa197f to fcd8863 Compare November 10, 2022 13:18
@fmeum fmeum changed the title WIP: Test -fsanitize=address on macOS Also collect clang resource directory with -no-canonical-prefixes Nov 10, 2022
@fmeum fmeum marked this pull request as ready for review November 10, 2022 13:20
@fmeum
Copy link
Collaborator Author

fmeum commented Nov 10, 2022

@oquenchil Could you review this small fix?

I have a very hard time reproducing this on the Bazel CI runners, so this doesn't come with a test. It shows up with Homebrew LLVM on GitHub Actions runners and without GNU readlink in path, which means that the readlink -f $CC logic doesn't run. I hope that this is uncontroversial enough to be merged as is.

@sgowroji sgowroji added team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels Nov 10, 2022
@oquenchil oquenchil added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Nov 15, 2022
@fmeum
Copy link
Collaborator Author

fmeum commented Nov 15, 2022

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Nov 15, 2022
@meteorcloudy
Copy link
Member

@bazel-io fork 6.0.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Nov 18, 2022
@sgowroji sgowroji removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Nov 18, 2022
@fmeum fmeum deleted the fix-print-resource-dir branch November 18, 2022 20:31
fmeum added a commit to fmeum/bazel that referenced this pull request Nov 18, 2022
`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 bazelbuild#16730.

PiperOrigin-RevId: 489475662
Change-Id: If17f347d76f86e0ec5804f9e8789f44f46ab27b4
ShreeM01 pushed a commit that referenced this pull request Nov 18, 2022
…16800)

`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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants