kernel: Drop -fuse-ld=lld from CFLAGS
clang-14: error: argument unused during compilation: '-fuse-ld=lld' [-Werror,-Wunused-command-line-argument] Change-Id: Ic863e8707e4c57c7d03183b6cb6d3cd38e919bcb
This commit is contained in:
committed by
nebrassy
parent
b31b260fe4
commit
c3d36d8a0d
@@ -142,9 +142,9 @@ ifeq ($(TARGET_KERNEL_CLANG_COMPILE),false)
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),darwin)
|
||||
KERNEL_MAKE_FLAGS += HOSTCFLAGS="-I$(BUILD_TOP)/external/elfutils/libelf -I/usr/local/opt/openssl/include -fuse-ld=lld" HOSTLDFLAGS="-L/usr/local/opt/openssl/lib -fuse-ld=lld"
|
||||
KERNEL_MAKE_FLAGS += HOSTCFLAGS="-I$(BUILD_TOP)/external/elfutils/libelf -I/usr/local/opt/openssl/include" HOSTLDFLAGS="-L/usr/local/opt/openssl/lib -fuse-ld=lld"
|
||||
else
|
||||
KERNEL_MAKE_FLAGS += CPATH="/usr/include:/usr/include/x86_64-linux-gnu" HOSTCFLAGS="-fuse-ld=lld" HOSTLDFLAGS="-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld"
|
||||
KERNEL_MAKE_FLAGS += CPATH="/usr/include:/usr/include/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld"
|
||||
endif
|
||||
|
||||
TOOLS_PATH_OVERRIDE := \
|
||||
|
||||
Reference in New Issue
Block a user