GCC automatically links math library by adding -lm to linker command
line, since C++ runtime libstdc++ requires libm, so add it to
RISCVToochain as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D129065
[RISCV][Driver] Add libm linking to `RISCVToolchain` for C++ ClosedPublic Authored by anton-afanasyev on Jul 4 2022, 2:47 AM.
Details Summary GCC automatically links math library by adding -lm to linker command
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 5 2022, 11:57 AM anton-afanasyev retitled this revision from [RISCV][Driver] Add libm linking to `RISCVToolchain` to [RISCV][Driver] Add libm linking to `RISCVToolchain` for C++.Jul 5 2022, 2:40 PM Comment Actions
Sure, updated. This revision was landed with ongoing or failed builds.Jul 5 2022, 2:54 PM Closed by commit rGf553287b5889: [RISCV][Driver] Add libm linking to `RISCVToolchain` for C++ (authored by anton-afanasyev). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 442402 clang/lib/Driver/ToolChains/RISCVToolchain.cpp
clang/test/Driver/riscv32-toolchain.c
clang/test/Driver/riscv64-toolchain.c
|