summaryrefslogtreecommitdiff
path: root/lib/utils/libquad
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@jrtc27.com>2021-07-11 05:28:23 +0300
committerAnup Patel <anup@brainfault.org>2021-07-11 17:52:55 +0300
commit2942777425516f7b31181fbaecc5485263dfcb01 (patch)
treea10f1590a8893b676af64b3f0f4d20560e67f646 /lib/utils/libquad
parent09ad811ec4661b99a67b87f28c93177367ae911e (diff)
downloadopensbi-2942777425516f7b31181fbaecc5485263dfcb01.tar.xz
Makefile: Support building with Clang and LLVM binutils
This is intended to mirror the Linux kernel. Building with CC=clang will use Clang as the compiler but default to using the existing binutils. Building with LLVM=1 will default to using Clang and LLVM binutils. Whilst GCC will accept the -N linker option and forward it on to the linker, Clang will not, and so in order to support both compilers we must use -Wl, to forward it to the linker as is required for most other linker options. Note that there is currently a bug when using Clang as the compiler and riscv64-linux-gnu-ld as the linker for FW_PIC=y. At first glance this appears to be a bug in GNU binutils, but this could also be Clang or OpenSBI at fault in some subtle way. Thus, for now, advise that this combination be avoided. Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> Tested-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/utils/libquad')
0 files changed, 0 insertions, 0 deletions