Don't use -ffunction-sections if -fno-function-sections is not supported in the compiler.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 3 Feb 2014 13:57:09 +0000 (13:57 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 3 Feb 2014 13:57:09 +0000 (13:57 +0000)
commit7db79d9c13f1d643703e267f9886102bdbf6c9cf
tree24c72becba895612147e4c65f5974b309b55e345
parent17fec838c461638fefb4c33ee242adb776b1b3d5
Don't use -ffunction-sections if -fno-function-sections is not supported in the compiler.

This will disable -ffunction-sections in older versions of Clang where it
breaks build of sanitizer runtime library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200695 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake