depot/third_party/nixpkgs/pkgs/development/compilers/ocaml/4.09.1-Werror.patch
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

16 lines
559 B
Diff

The 4.09.1 tarball appears to have been acidentally generated as a
development tarball, which causes configure to enable -Werror. This
means newer compilers will make the build fail.
diff a/configure b/configure
--- a/configure
+++ b/configure
@@ -12360,7 +12360,7 @@ case $ocaml_cv_cc_vendor in #(
msvc-*) :
outputobj=-Fo; CPP="cl -nologo -EP"; gcc_warnings="" ;; #(
*) :
- outputobj='-o $(EMPTY)'; case 4.09.1+dev1-2020-03-13 in #(
+ outputobj='-o $(EMPTY)'; case 4.09.1 in #(
*+dev*) :
gcc_warnings="-Wall -Werror" ;; #(
*) :