[CMake] When disabling PIC, also pass -fno-pie when linking if it is supported.
authorChris Bieneman <beanz@apple.com>
Tue, 24 Nov 2015 08:04:59 +0000 (08:04 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 24 Nov 2015 08:04:59 +0000 (08:04 +0000)
commitf92fdc8e935aac1155f8132e365ec3bd65fc9a16
tree4286075ac4ec5e11b9d5cc676894e9bd38581ac9
parent5fb978c88550d8593e85af6752cec1416f17cff8
[CMake] When disabling PIC, also pass -fno-pie when linking if it is supported.

Building clang with -fno-pie generates slightly faster code. In my not-very-rigorous testing I saw about a 4% speed up using the clang test-suite sources.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253959 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake