mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
cc-wrapper: Fortran: disable format hardening
Otherwise, these warnings are emitted: command-line option '-Wformat=1' is valid for C/C++/ObjC/ObjC++ but not for Fortran command-line option '-Wformat-security' is valid for C/C++/ObjC/ObjC++ but not for Fortran '-Werror=' argument '-Werror=format-security' is not valid for Fortran Fixes part of #27218
This commit is contained in:
parent
e8a8945108
commit
7b185e04a9
@ -492,6 +492,8 @@ stdenv.mkDerivation {
|
||||
hardening_unsupported_flags+=" format stackprotector strictoverflow"
|
||||
'' + optionalString cc.langD or false ''
|
||||
hardening_unsupported_flags+=" format"
|
||||
'' + optionalString cc.langFortran or false ''
|
||||
hardening_unsupported_flags+=" format"
|
||||
'' + optionalString targetPlatform.isWasm ''
|
||||
hardening_unsupported_flags+=" stackprotector fortify pie pic"
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user