Using Clang instead of GCC
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;
}
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;
}