[compiler-rt][crt] Pass -fno-lto in check_cxx_section_exists

Otherwise it doesn't work when building with -DLLVM_ENABLE_LTO=thin

(We hit this in Chromium in
https://bugs.chromium.org/p/chromium/issues/detail?id=966403)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@369336 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/crt/CMakeLists.txt b/lib/crt/CMakeLists.txt
index 03a07f4..34c368f 100644
--- a/lib/crt/CMakeLists.txt
+++ b/lib/crt/CMakeLists.txt
@@ -19,6 +19,7 @@
   if(CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_TARGET)
     list(APPEND try_compile_flags "-target ${CMAKE_C_COMPILER_TARGET}")
   endif()
+  append_list_if(COMPILER_RT_HAS_FNO_LTO_FLAG -fno-lto try_compile_flags)
 
   string(REPLACE ";" " " extra_flags "${try_compile_flags}")