-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Bazel build failed to detect clang compiler #732
Comments
Is llvm the default compiler for the build? Does building with "--compiler=llvm" do anything different? My best guess is whatever environment you are running into doesn't default to the llvm compiler, which is why it wouldn't choose the select() path that adds that define. |
The default compiler in my environment (aka. Here's the logs building with
|
Abseil relies on the compiler string being For now, try working around this using |
@derekmauro Thanks for your explanation. Unfortunately, the workaround didn't work on Bazel 3.3.1.
|
I got the point. I can patch
|
Is it possible to detect the Bazel version and make another else-if branch for this issue? This could help to detect Bazel version: https://github.com/bazelbuild/bazel-skylib/blob/master/lib/versions.bzl |
Environment
Expected
The target
leak_check_api_enabled_for_testing
defined as following:Building it, I expected
-DLEAK_SANITIZER
in clang command.Actual
The text was updated successfully, but these errors were encountered: