Ticket #57130: patch-map-anonymous-replacement.diff

File patch-map-anonymous-replacement.diff, 494 bytes (added by kencu (Ken), 6 years ago)
  • llvm-7.0.0rc2.src/projects/compiler-rt/CMakeLists.txt

    old new  
    195195  add_definitions(-D__func__=__FUNCTION__)
    196196endif()
    197197
     198# replace MAP_ANONYMOUS
     199add_definitions(-DMAP_ANONYMOUS=MAP_ANON)
     200
    198201# Provide some common commmandline flags for Sanitizer runtimes.
    199202if(NOT WIN32)
    200203  append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC SANITIZER_COMMON_CFLAGS)