[PATCH] D119989: [clangd] Fix building SerializationTests unit test on OpenBSD
Brad Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 09:17:56 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf374c8ddf2dd: [clangd] Fix building SerializationTests unit test on OpenBSD (authored by brad).
Changed prior to commit:
https://reviews.llvm.org/D119989?vs=409445&id=409689#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119989/new/
https://reviews.llvm.org/D119989
Files:
clang-tools-extra/clangd/unittests/SerializationTests.cpp
Index: clang-tools-extra/clangd/unittests/SerializationTests.cpp
===================================================================
--- clang-tools-extra/clangd/unittests/SerializationTests.cpp
+++ clang-tools-extra/clangd/unittests/SerializationTests.cpp
@@ -308,9 +308,9 @@
}
}
-// rlimit is part of POSIX.
+// rlimit is part of POSIX. RLIMIT_AS does not exist in OpenBSD.
// Sanitizers use a lot of address space, so we can't apply strict limits.
-#if LLVM_ON_UNIX && !LLVM_ADDRESS_SANITIZER_BUILD && \
+#if LLVM_ON_UNIX && defined(RLIMIT_AS) && !LLVM_ADDRESS_SANITIZER_BUILD && \
!LLVM_MEMORY_SANITIZER_BUILD
class ScopedMemoryLimit {
struct rlimit OriginalLimit;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119989.409689.patch
Type: text/x-patch
Size: 715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/3a40adc9/attachment.bin>
More information about the llvm-commits
mailing list