Merge pull request #270784 from emilytrau/buddy-clang

buddy: fix clang build
This commit is contained in:
Weijia Wang 2023-11-30 03:32:23 +01:00 committed by GitHub
commit 4237bae3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
buildInputs = [ bison ];
patches = [ ./gcc-4.3.3-fixes.patch ];
configureFlags = [ "CFLAGS=-O3" "CXXFLAGS=-O3" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=register";
NIX_LDFLAGS = "-lm";
doCheck = true;