[all-commits] [llvm/llvm-project] 5c1cea: [Support] Fix build for Haiku
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Wed Jan 27 19:53:22 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5c1cea6f406366b85f3c200a1c48f713da4450ba
https://github.com/llvm/llvm-project/commit/5c1cea6f406366b85f3c200a1c48f713da4450ba
Author: Serge Pavlov <sepavloff at gmail.com>
Date: 2021-01-28 (Thu, 28 Jan 2021)
Changed paths:
M llvm/lib/Support/CMakeLists.txt
M llvm/lib/Support/Unix/Program.inc
Log Message:
-----------
[Support] Fix build for Haiku
This change fixes two issues with building LLVM on Haiku. The first issue is
that LLVM requires wait4(), which on Haiku is hidden behind the _BSD_SOURCE
feature flag when using the --std=c++14 flag. Additionally, the wait4()
function is only available in libbsd.so, so this is now a dependency.
The other fix is that Haiku does not have the (non-standard) rusage.maxrss
member, so by default the used memory info will be set to 0 on this platform.
Reviewed By: sepavloff
Differential Revision: https://reviews.llvm.org/D87920
Patch by Niels Sascha Reedijk.
More information about the All-commits
mailing list