[flang-commits] [clang] [flang] [clang][driver] When -fveclib=ArmPL flag is in use, always link against libamath (PR #116432)
Fangrui Song via flang-commits
flang-commits at lists.llvm.org
Mon Dec 2 19:24:01 PST 2024
================
@@ -490,6 +490,17 @@ void tools::AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs,
else
A.renderAsInput(Args, CmdArgs);
}
+ if (const Arg *A = Args.getLastArg(options::OPT_fveclib)) {
+ if (A->getNumValues() == 1) {
----------------
MaskRay wrote:
fveclib is a Joined option that takes exactly one value. `getNumValues() == 1` is an unneeded test
https://github.com/llvm/llvm-project/pull/116432
More information about the flang-commits
mailing list