[all-commits] [llvm/llvm-project] f55328: [RISCV][Driver] Add libm linking to `RISCVToolchai...

Anton Afanasyev via All-commits all-commits at lists.llvm.org
Tue Jul 5 14:54:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f553287b588916de09c66e3e32bf75e5060f967f
      https://github.com/llvm/llvm-project/commit/f553287b588916de09c66e3e32bf75e5060f967f
  Author: Anton Afanasyev <anton.a.afanasyev at gmail.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/RISCVToolchain.cpp
    M clang/test/Driver/riscv32-toolchain.c
    M clang/test/Driver/riscv64-toolchain.c

  Log Message:
  -----------
  [RISCV][Driver] Add libm linking to `RISCVToolchain` for C++

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.

Differential Revision: https://reviews.llvm.org/D129065




More information about the All-commits mailing list