summaryrefslogtreecommitdiff
path: root/lib/crt
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-05-01 03:30:51 +0000
committerPetr Hosek <phosek@chromium.org>2019-05-01 03:30:51 +0000
commit8bff215cea06b2a2a25fe7680a40bf9f85b78d5d (patch)
tree2a7024e26398a2bcb71ebcf70e512797fbd3dc2c /lib/crt
parentec9ec0d054a786360bc94a5a3fd481ce829f9f15 (diff)
downloadcompiler-rt-8bff215cea06b2a2a25fe7680a40bf9f85b78d5d.tar.gz
[compiler-rt] Pass sysroot and disable pedantic for crtbegin.o/crtend.o
These are needed to make bots happy. Differential Revision: https://reviews.llvm.org/D61363 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/crt')
-rw-r--r--lib/crt/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crt/CMakeLists.txt b/lib/crt/CMakeLists.txt
index f0e8118e9..2323e5754 100644
--- a/lib/crt/CMakeLists.txt
+++ b/lib/crt/CMakeLists.txt
@@ -73,6 +73,7 @@ check_cxx_section_exists(".init_array" COMPILER_RT_HAS_INITFINI_ARRAY
append_list_if(COMPILER_RT_HAS_INITFINI_ARRAY -DCRT_HAS_INITFINI_ARRAY CRT_CFLAGS)
append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC CRT_CFLAGS)
+append_list_if(COMPILER_RT_HAS_NO_PEDANTIC -Wno-pedantic CRT_CFLAGS)
foreach(arch ${CRT_SUPPORTED_ARCH})
add_compiler_rt_runtime(clang_rt.crtbegin