treewide: make -Wno-error flags clang-only
In 724e833ea2, I was a little too aggressive in enabling these flags.
Many don’t work in gcc, and we should probably avoid settings them
widely. This makes those flags optional on isclang
This commit is contained in:
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=argument-outside-range";
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=argument-outside-range";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A professional free 3D Game Multiphysics Library";
|
||||
|
||||
Reference in New Issue
Block a user