llvm-project/compiler-rt/lib
Alex Richardson 6148cca708 [compiler-rt] Fix build of Sanitizer-Test_Nolibc after D80648
Running ninja check-sanitizer fails for after that patch (commit
058f5f6fd8) with the following error:

libRTSanitizerCommon.test.nolibc.x86_64.a(sanitizer_posix.cpp.o): In
function `__sanitizer::GetNamedMappingFd(char const*, unsigned long,
int*)':
..../llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp:358:
undefined reference to `fcntl'
clang-12: error: linker command failed with exit code 1 (use -v to see
invocation)

This patch works around the problem by only calling fcntl if O_CLOEXEC
is not defined.

Reviewed By: plopresti

Differential Revision: https://reviews.llvm.org/D85114
2020-08-06 09:16:52 +01:00
..
BlocksRuntime
asan sanitizer_symbolizer_libcdep.cpp: Change --inlining=true to --inlines and --inlining=false to --no-inlines 2020-08-04 10:24:59 -07:00
builtins [CMake] Bump CMake minimum version to 3.13.4 2020-07-22 14:25:07 -04:00
cfi Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
crt [cmake] Strip quotes in compiler-rt/lib/crt; error if checks fail 2020-03-09 15:52:39 -07:00
dfsan [DFSan] Remove dfsan_use_fast16labels from abilist. 2020-07-29 23:18:07 +00:00
fuzzer Revert "Add libFuzzer shared object build output" 2020-08-05 12:11:24 -07:00
gwp_asan [GWP-ASan] Crash handler API returns sizeof(collected trace) 2020-07-27 10:51:55 -07:00
hwasan [compiler-rt][asan][hwasan] Refactor shadow setup into sanitizer_common (NFCI) 2020-07-16 11:47:05 -07:00
interception Fix check-interception link error in compiler-rt debug mode 2019-10-10 23:30:54 +00:00
lsan [LSan] Enable for SystemZ 2020-06-16 13:45:29 +02:00
msan [msan] Respect no_huge_pages_for_shadow. 2020-08-01 16:59:51 -07:00
profile [PGO] Extend the value profile buckets for mem op sizes. 2020-08-03 11:04:32 -07:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common [compiler-rt] Fix build of Sanitizer-Test_Nolibc after D80648 2020-08-06 09:16:52 +01:00
scudo [Scudo][CMake] Add -fno-lto to Scudo libraries 2020-07-29 10:24:06 -07:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [tsan] Fix the open and open64 interceptors to have correct declarations (variadic functions) 2020-07-30 09:00:47 -07:00
ubsan [compiler-rt][cmake] Simplify COMPILER_RT_HAS_VERSION_SCRIPT tests 2020-07-30 10:27:36 +02:00
ubsan_minimal [ubsan] Check implicit casts in ObjC for-in statements 2020-07-13 15:11:18 -07:00
xray [xray] Option to omit the function index 2020-06-17 13:49:01 -04:00
CMakeLists.txt scudo: Add support for diagnosing memory errors when memory tagging is enabled. 2020-04-17 17:26:30 -07:00