Using Clang instead of GCC: Difference between revisions
imported>Symphorien add an example of nix-shell with clang |
imported>Symphorien explain how to get a specific version of clang |
||
Line 2: | Line 2: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
stdenv = pkgs.clangStdenv; | stdenv = pkgs.clangStdenv; | ||
</syntaxhighlight> | |||
or to get a specific version of clang: | |||
<syntaxhighlight lang="nix"> | |||
stdenv = pkgs.llvmPackages_9.stdenv; | |||
</syntaxhighlight> | </syntaxhighlight> | ||