Don't pass -O3 to the linker in debug builds.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 6 Apr 2015 14:51:01 +0000 (14:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 6 Apr 2015 14:51:01 +0000 (14:51 +0000)
commite104aca94c964f1ffcc718da441c8bdfc18280fc
tree048aa84b063ca7ca3c8fee1b154ec56fbb5bdb39
parent29072c8fab85f090d0482074c1d7bbb4565de8fd
Don't pass -O3 to the linker in debug builds.

This takes linking clang in a debug build with gold form 19.518925697 to
16.406388685 seconds.

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