-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
buildIssues related to building Halide and with CIIssues related to building Halide and with CI
Description
I want to use Halide with Bazel. I'm currently hacking on reverting the PRs that deleted support for it earlier this year.
Is there interested in merging this work back into this repository? I could also keep this separate without too much trouble.
If there is interest in porting the whole build system to Bazel and not just the library user side I could potentially help a bit with that too. I'm a Googler so could potentially help with open sourcing the internal Blaze setup. It seems like Windows support in Bazel has gotten a bit better in the last year. Building Halide with Blaze would be very useful for the project I'm using it in, since we will likely need to hack at least a bit in the Halide code base.
Details:
- I use Linux and am not very interested in working with Windows stuff, but if I could build all of Halide with Bazel maybe I can help there too.
- I don't fully understand how the old Bazel rules worked wrt LLVM; Unlike CMake, Bazel cannot build LLVM so it needs to be fed with a binary distribution of it. Linking directly against the LLVM libraries is a bit sensitive to which toolchain is used by the Bazel build. The official LLVM binary distribution for Ubuntu links against libstdc++, but the Bazel compiler toolchain that seems most well supported is hard coded to use libc++... The approach I am going for at the moment is to have my own custom built LLVM where the LLVM libraries are built against libc++ in order to be able to use the gailbio toolchain setup. All in all it just seems a bit tricky to get hermetic builds up and running in a user friendly way.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buildIssues related to building Halide and with CIIssues related to building Halide and with CI