arm64: vdso32: Allow building with LLVM integrated AS
authorBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 22:29:59 +0000 (23:29 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 14:12:33 +0000 (15:12 +0100)
Change-Id: I8bfc0e53b4bd347adaa298594402a2210aed3b49

arch/arm64/kernel/vdso32/Makefile

index b75c2fda6236a11682fb7b87778d9b0c3b03dd22..4bd7ec32989f21ec8ebeb878691051ec3a430caf 100644 (file)
@@ -5,7 +5,10 @@
 # A mix between the arm64 and arm vDSO Makefiles.
 
 ifeq ($(cc-name),clang)
-  CC_ARM32 := $(CC) $(CLANG_TARGET_ARM32) -no-integrated-as $(CLANG_GCC32_TC) $(CLANG_PREFIX32)
+  CC_ARM32 := $(CC) $(CLANG_TARGET_ARM32) $(CLANG_GCC32_TC) $(CLANG_PREFIX32)
+  ifneq ($(LLVM_IAS),1)
+    CC_ARM32 += -no-integrated-as
+  endif
 else
   CC_ARM32 := $(CROSS_COMPILE_ARM32)$(cc-name)
 endif