Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: Makefile: set -Qunused-arguments sooner
The recently added support for -fuse-ld=lld is problematic for kbuild in that cc-option tests that add -Werror -c -fuse-ld=lld, as -c implies that no linker is invoked, and thus -fuse-ld=lld is an unused flag. Therefor, -Qunused-arguments needs to be set sooner in the Makefile, otherwise cc-option will fail when building with: $ make LD=ld.lld Also, -Qunused-arguments has been supported by Clang for a long time; there's no need to wrap it in cc-option. Bug: 63740206 Bug: 124794189 Change-Id: I90fb78fab1197db781ede09327783f616e5fbfaf Link: ClangBuiltLinux/linux#366 Suggested-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
- Loading branch information