mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01: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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue