[compiler-rt] Fix build of Sanitizer-Test_Nolibc after D80648
Running ninja check-sanitizer fails for after that patch (commit
058f5f6fd813d1ee1480497394d6fd44e65ec62b) with the following error:
function `__sanitizer::GetNamedMappingFd(char const*, unsigned long,
undefined reference to `fcntl'
clang-12: error: linker command failed with exit code 1 (use -v to see
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