[clang] [Clang][Driver] Fix target parsing for -fveclib=libmvec option. (PR #138288)

Benjamin Maxwell via cfe-commits cfe-commits at lists.llvm.org
Fri May 2 07:59:22 PDT 2025


================
@@ -934,7 +934,7 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
     std::optional<StringRef> OptVal =
         llvm::StringSwitch<std::optional<StringRef>>(ArgVecLib->getValue())
             .Case("Accelerate", "Accelerate")
-            .Case("LIBMVEC", "LIBMVEC-X86")
+            .Case("libmvec", "LIBMVEC-X86")
----------------
MacDue wrote:

Does the normalized value need changing to match this? Currently it's "LIBMVEC" all uppercase: 
https://github.com/llvm/llvm-project/blob/ee3610efb511ec0a8d5ebd2016ce23b4b4344cd1/clang/include/clang/Driver/Options.td#L3430-L3433

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


More information about the cfe-commits mailing list