[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)
Maciej Gabka via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 23 01:31:14 PST 2024
================
@@ -31,3 +31,21 @@
// 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 -### --target=x86_64-unknown-linux-gnu -fveclib=LIBMVEC -flto %s -v 2>&1 | FileCheck -check-prefix CHECK-LTO-LIBMVEC %s
----------------
mgabka wrote:
I think using -v is not necessary here *(other run lines do not use is in this file), and from what I remember it changes a bit how the compiler driver works, could you remove it here and in the other run lines?
https://github.com/llvm/llvm-project/pull/78749
More information about the cfe-commits
mailing list