Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: how to setup a LLVM development environment #217724

Closed
SchrodingerZhu opened this issue Feb 22, 2023 · 1 comment
Closed

Documentation: how to setup a LLVM development environment #217724

SchrodingerZhu opened this issue Feb 22, 2023 · 1 comment

Comments

@SchrodingerZhu
Copy link

Problem

I found it is not trivial to setup a usable LLVM development environment.

I hope something like the following should work:

environment.systemPackages = with pkgs; [
     llvmPackages_latest.clangUseLLVM
     llvmPackages_latest.llvm
     llvmPackages_latest.openmp
     llvmPackages_latest.lld
     llvmPackages_latest.bintools
     llvmPackages_latest.libcxx
     llvmPackages_latest.libcxxabi
     llvmPackages_latest.compiler-rt
     llvmPackages_latest.libunwind
];

But this does not give the dev headers like:

/nix/store/mg7dmdj9nbijkys9ink0qi6gl5cpshk6-openmp-14.0.6-dev

Only when I enter the nix shell would the *-dev being populated.

How to correctly setup the development environment?

@aaronmondal
Copy link
Contributor

I think we have something that comes close to what you want in our rules_ll flake.

See #213144 and #214524.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants