makeBinaryWrapper: add -Wno-overlength-strings

The generated C code contains large string literals that are longer than
the maximum length specified by the standard.

However, GCC has no trouble dealing with those strings, so we can just
add -Wno-overlength-strings.

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Woverlength-strings
main
Naïm Favier 2 years ago
parent 8ad52489e9
commit 42a4c05dd0
No known key found for this signature in database
GPG Key ID: 49B07322580B7EE2
  1. 1
      pkgs/build-support/setup-hooks/make-binary-wrapper.sh

@ -46,6 +46,7 @@ makeWrapper() {
makeDocumentedCWrapper "$original" "$@" | \
@CC@ \
-Wall -Werror -Wpedantic \
-Wno-overlength-strings \
-Os \
-x c \
-o "$wrapper" -

Loading…
Cancel
Save