[all-commits] [llvm/llvm-project] f57dd4: [CMake] Do not append -lm to CMAKE_REQUIRED_LIBRAR...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Fri Jun 5 09:45:55 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f57dd41562340b0d5d9931b3f1becca761a54d26
https://github.com/llvm/llvm-project/commit/f57dd41562340b0d5d9931b3f1becca761a54d26
Author: Louis Dionne <ldionne at apple.com>
Date: 2020-06-05 (Fri, 05 Jun 2020)
Changed paths:
M llvm/cmake/config-ix.cmake
Log Message:
-----------
[CMake] Do not append -lm to CMAKE_REQUIRED_LIBRARIES on Apple
On Apple platforms, linking against libSystem.dylib is sufficient, and
some Apple platforms don't provide libm.dylib. On those platforms, adding
-lm to CMAKE_REQUIRED_LIBRARIES causes all subsequent compile-flag checks
to fail due to the missing library.
Differential Revision: https://reviews.llvm.org/D81265
More information about the All-commits
mailing list