diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-10-22 20:47:18 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-10-22 21:13:16 -0400 |
commit | 523d3f143c6a361d5a5ceea39be100885c61ad54 (patch) | |
tree | 4514e2fea0d2a0261cec0f77557c21c5ede65d10 /pkgs/servers/invidious | |
parent | fa21ebc82575a4e5d9f8d3b44f46fbae94c06ea4 (diff) |
invidious: fix build with GCC
Diffstat (limited to 'pkgs/servers/invidious')
-rw-r--r-- | pkgs/servers/invidious/lsquic.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/invidious/lsquic.nix b/pkgs/servers/invidious/lsquic.nix index 918882968b7a2..9c88ae004aabc 100644 --- a/pkgs/servers/invidious/lsquic.nix +++ b/pkgs/servers/invidious/lsquic.nix @@ -57,6 +57,11 @@ let preBuild = preBuild + lib.optionalString stdenv.isLinux '' sed -e '/^build crypto\/fipsmodule\/CMakeFiles\/fipsmodule\.dir\/bcm\.c\.o:/,/^ *FLAGS =/ s/^ *FLAGS = -Werror/& -Wno-error=stringop-overflow/' \ -i build.ninja + '' + lib.optionalString stdenv.cc.isGNU '' + # Silence warning that causes build failures with GCC. + sed -e '/^build ssl\/test\/CMakeFiles\/bssl_shim\.dir\/settings_writer\.cc\.o:/,/^ *FLAGS =/ s/^ *FLAGS = -Werror/& -Wno-error=ignored-attributes/' \ + -e '/^build ssl\/test\/CMakeFiles\/handshaker\.dir\/settings_writer\.cc\.o:/,/^ *FLAGS =/ s/^ *FLAGS = -Werror/& -Wno-error=ignored-attributes/' \ + -i build.ninja '' + lib.optionalString stdenv.cc.isClang ( # Silence warnings that cause build failures with newer versions of clang. let |