eomii / rules_ll

An Upstream Clang/LLVM-based toolchain for contemporary C++ and heterogeneous programming
https://ll.eomii.org
Other
81 stars 10 forks source link

osx support #18

Open sdykae opened 1 year ago

sdykae commented 1 year ago

title image

neqochan commented 1 year ago

Osx support ist hard for us to integrate natively as I don't think our overlays are compatible. I'll put it on our Todo list but this will likely take some time until we can tackle this.

In the meantime you may be able to just use docker. We know that rules_ll works on Windows with WSL, so I think a e.g an Ubuntu image with gcc-dev and libxml-dev should work. @JannisFengler may be able to give you an exact package list.

Just make sure to use local volume mounts so that you don't need to rebuild the entire LLVM project every time you run that container 😅

aaronmondal commented 1 year ago

@sdykae Would you want to try this again? The new rules_ll is wrapped in Nix, so I think we have a chance of actually getting it to work natively now.

If you have the nix package manager installed and flakes enabled the command to set up a project is

nix develop github:eomii/rules_ll
ll init

There will probably be a few bugs regarding the build configuration but we no longer have to "hard block" non-linux OSes and we should be able to make it work natively on OSX now.