Commit 335a0cc6 authored by OPNA2608's avatar OPNA2608
Browse files

cc-wrapper: Disable format hardening for Go

go1: warning: command-line option '-Wformat=1' is valid for C/C++/ObjC/ObjC++ but not for Go
go1: warning: command-line option '-Wformat-security' is valid for C/C++/ObjC/ObjC++ but not for Go
go1: warning: '-Werror=' argument '-Werror=format-security' is not valid for Go
parent 57223198
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -870,6 +870,9 @@ stdenvNoCC.mkDerivation {
    + optionalString cc.langFortran or false ''
      hardening_unsupported_flags+=" format"
    ''
    + optionalString cc.langGo or false ''
      hardening_unsupported_flags+=" format"
    ''
    + optionalString targetPlatform.isWasm ''
      hardening_unsupported_flags+=" stackprotector fortify pie pic"
    ''