Using Clang instead of GCC: Difference between revisions
Appearance
imported>Mickours Add the trick to override package and build with Clang |
(No difference)
|
Revision as of 15:03, 2 May 2018
You can use Clang instead of GCC as a compiler for any package by overriding `stdenv`:
{ pkgs, my_package }:
my_package.override {
# use Clang instead of GCC
stdenv = pkgs.clangStdenv;
}