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
--rtlib does not trigger -Wunused-command-line-argument on AArch64 #53397
Comments
Could you please clarify platforms? |
@llvm/issue-subscribers-clang-driver |
… r=firefox-build-system-reviewers,andi Instead of forcing it via a patch to clang itself (which now conflicts with other changes on clang trunk, although the conflict is benign). Because of llvm/llvm-project#53397 we need to narrow down the warnings that trigger errors in the check for `pthread_cond_timedwait_monotonic_np`. Differential Revision: https://phabricator.services.mozilla.com/D136850
See the |
} else if (Triple.isAArch64() &&
getToolChain().IsAArch64OutlineAtomicsDefault(Args)) {
CmdArgs.push_back("-target-feature");
CmdArgs.push_back("+outline-atomics");
} added by [AArch64][Clang][Linux] Enable out-of-line atomics by default. sets the I do think |
… r=firefox-build-system-reviewers,andi Instead of forcing it via a patch to clang itself (which now conflicts with other changes on clang trunk, although the conflict is benign). Because of llvm/llvm-project#53397 we need to narrow down the warnings that trigger errors in the check for `pthread_cond_timedwait_monotonic_np`. Differential Revision: https://phabricator.services.mozilla.com/D136850
On some platforms,
--rtlib=libgcc
/--rtlib=compiler-rt
only affect the libraries linked. On some others, it affects the generated code. As such, it needs to be passed as a CFLAGS and a LDFLAGS. The problem is that on platforms where the generated code, having it in CFLAGS triggers a unused-command-line-argument warning. Whether it affects the generated code is a clang implementation detail that build systems shouldn't be concerned with.STR:
touch foo.c
clang -c foo.c --rtlib=libgcc --target=aarch64-linux-android
-> no warningclang -c foo.c --rtlib=libgcc --target=i686-linux-android
->warning: argument unused during compilation: '--rtlib=libgcc' [-Wunused-command-line-argument]
The text was updated successfully, but these errors were encountered: