<commit_before>require 'formula'

class OMake <Formula
  url 'http://omake.metaprl.org/downloads/omake-0.9.8.5-3.tar.gz'
  homepage 'http://omake.metaprl.org/'
  md5 'd114b3c4201808aacd73ec1a98965c47'

  depends_on 'objective-caml'

  def patches
    # removes reference to missing caml_sync in OS X OCaml
    DATA
  end

  def install
    system "make install PREFIX=#{prefix}"
  end
end

__END__
diff --git a/src/exec/omake_exec.ml b/src/exec/omake_exec.ml
index 8c034b5..7e40b35 100644
--- a/src/exec/omake_exec.ml
+++ b/src/exec/omake_exec.ml
@@ -46,8 +46,6 @@ open Omake_exec_notify
 open Omake_options
 open Omake_command_type
 
-external sync : unit -> unit = "caml_sync"
-
 module Exec =
 struct
    (*
<commit_msg>Patch OMake to build under OCaml 3.12<commit_after>require 'formula'

class OMake <Formula
  url 'http://omake.metaprl.org/downloads/omake-0.9.8.5-3.tar.gz'
  homepage 'http://omake.metaprl.org/'
  md5 'd114b3c4201808aacd73ec1a98965c47'

  depends_on 'objective-caml'

  def patches
    # removes reference to missing caml_sync in OS X OCaml
    DATA
  end

  def install
    system "make install PREFIX=#{prefix}"
  end
end

__END__
diff --git a/src/exec/omake_exec.ml b/src/exec/omake_exec.ml
index 8c034b5..7e40b35 100644
--- a/src/exec/omake_exec.ml
+++ b/src/exec/omake_exec.ml
@@ -46,8 +46,6 @@ open Omake_exec_notify
 open Omake_options
 open Omake_command_type
 
-external sync : unit -> unit = "caml_sync"
-
 module Exec =
 struct
    (*
diff --git a/OMakefile b/OMakefile
index 9b77a25..1d61d70 100644
--- a/OMakefile
+++ b/OMakefile
@@ -57,7 +57,7 @@ if $(not $(defined CAMLLIB))
 #
 # OCaml options
 #
-OCAMLFLAGS[] += -w Ae$(if $(OCAML_ACCEPTS_Z_WARNING), z)
+OCAMLFLAGS[] += -w Ae$(if $(OCAML_ACCEPTS_Z_WARNING), z)-9-27..29
 if $(THREADS_ENABLED)
     OCAMLFLAGS += -thread
     export

{'fraction_non_alphanumeric': 0.13267543859649122, 'fraction_numerical': 0.07017543859649122, 'mean_word_length': 3.517326732673267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1499333', 'n_tokens_mistral': 837, 'n_tokens_neox': 753, 'n_words': 158}