[PATCH] D109913: [Bazel] Use posix definitions for FreeBSD
William Muir via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 13:04:22 PDT 2021
wamuir created this revision.
wamuir added a project: bazel build.
Herald added subscribers: krytarowski, arichardson, emaste.
wamuir requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Presently, definitions default to those for Linux which are not defined for FreeBSD (HAVE_LSEEK64, HAVE_MALLINFO, etc.). Patch sets os_defines to posix definitions under FreeBSD.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109913
Files:
utils/bazel/llvm-project-overlay/llvm/config.bzl
Index: utils/bazel/llvm-project-overlay/llvm/config.bzl
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/config.bzl
+++ utils/bazel/llvm-project-overlay/llvm/config.bzl
@@ -69,6 +69,7 @@
os_defines = select({
"@bazel_tools//src/conditions:windows": win32_defines,
"@bazel_tools//src/conditions:darwin": macos_defines,
+ "@bazel_tools//src/conditions:freebsd": posix_defines,
"//conditions:default": linux_defines,
})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109913.373039.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210916/b6e6c68d/attachment.bin>
More information about the llvm-commits
mailing list