[msan] Disable tail call optimization in msan rtl.

This should give us better error stack traces on the bots, in
particular, for https://bugs.llvm.org/show_bug.cgi?id=40162

llvm-svn: 350080
This commit is contained in:
Evgeniy Stepanov 2018-12-27 00:21:20 +00:00
parent f227621036
commit faef9b77de
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ endif()
# Prevent clang from generating libc calls.
append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding MSAN_RTL_CFLAGS)
# Tracking down https://bugs.llvm.org/show_bug.cgi?id=40162
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND MSAN_RTL_CFLAGS -fno-optimize-sibling-calls)
endif()
set(MSAN_RUNTIME_LIBRARIES)
# Static runtime library.