[all-commits] [llvm/llvm-project] 2d0c9b: [OpenMP][CMake] Ensure linking against libm for Linux

James Beddek via All-commits all-commits at lists.llvm.org
Sat Mar 5 20:20:43 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d0c9b64a07c6c430ccfe11ea4c767d788d20461
      https://github.com/llvm/llvm-project/commit/2d0c9b64a07c6c430ccfe11ea4c767d788d20461
  Author: James Beddek <telans at posteo.de>
  Date:   2022-03-05 (Sat, 05 Mar 2022)

  Changed paths:
    M openmp/runtime/cmake/LibompHandleFlags.cmake

  Log Message:
  -----------
  [OpenMP][CMake] Ensure linking against libm for Linux

Do the same as is done for NetBSD. Some compiler-rt/lib/builtins files call
libm functions (e.g. fmaxl, fabs). Linking libomp with --rtlib=compiler-rt
references these functions.
Downstream report: https://bugs.gentoo.org/816831

Fixes: https://github.com/llvm/llvm-project/issues/51457




More information about the All-commits mailing list