-
Notifications
You must be signed in to change notification settings - Fork 264
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
[FR] clang driver should default to gnu hashes if the target api level is >= 23? #2005
Comments
I think we already have this enhancement: if (!IsMips && !IsHexagon) {
if (Distro.IsOpenSUSE() || Distro == Distro::UbuntuLucid ||
Distro == Distro::UbuntuJaunty || Distro == Distro::UbuntuKarmic ||
(IsAndroid && Triple.isAndroidVersionLT(23)))
ExtraOpts.push_back("--hash-style=both");
else
ExtraOpts.push_back("--hash-style=gnu");
} |
It looks like @DanAlbert added it in 2018, https://reviews.llvm.org/D53118. |
Nice - it covers non-Android triples as well. I think we can remove all instances of this flag in https://cs.android.com/search?q=hash-style%3Dgnu%20file:build%2Fsoong&sq=&ss=android. |
awesome! i'll just update the docs, remove the cruft from our build system (once my outstanding comment cl is in, anyway), and call this "done"... |
https://android-review.googlesource.com/c/platform/bionic/+/3004376 is the doc update. |
Duplicate of #883. |
https://android-review.googlesource.com/c/platform/build/soong/+/3007713 removes the obsolete workarounds from the build system. |
We fixed the clang driver to "do the right thing" based on target api level years ago, but these manual workarounds predate that (or were copy & pasted from places that predated that). We don't need them any more. See android/ndk#2005 for more detail. Change-Id: I995741b8606e389e8de8272f1cc532624516245a
Description
currently we have this in the android build system:
and presumably similar stuff elsewhere. seems like that should just be the driver's problem instead?
@pirama-arumuga-nainar
The text was updated successfully, but these errors were encountered: