[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

Maciej Gabka via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 07:13:23 PST 2024


================
@@ -31,3 +31,27 @@
 
 // RUN: %clang -fveclib=Accelerate %s -nodefaultlibs -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NODEFAULTLIBS %s
 // CHECK-LINK-NODEFAULTLIBS-NOT: "-framework" "Accelerate"
+
+
+/* Verify that the correct vector library is passed to LTO flags. */
+
+// RUN: %clang -### -fveclib=Accelerate -flto %s -v 2>&1 | FileCheck -check-prefix CHECK-LTO-ACCELERATE %s
----------------
mgabka wrote:

you are missing here target, presumably it should be  -target arm64-apple-ios8.0.0 as in the other run lines for "-fveclib=Accelerate", I think you need to ensure that each of the RUN lines specifies target

https://github.com/llvm/llvm-project/pull/78749


More information about the cfe-commits mailing list