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
This commit is contained in:
OPNA2608
2025-09-10 17:38:53 +02:00
parent 57223198e2
commit 335a0cc646
@@ -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"
''