Skip to content
Browse files

sets up a 'legacy mode'

When the OCAML_LEGACY_FORMAT environment variable is set, the compiler
will try to emulate the behaviour of the previous implementation of
format.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14813 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
1 parent e0ed68b commit fb906370951e559dba66fd821bbe6a99c613ff33 @gasche gasche committed May 12, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 stdlib/camlinternalFormat.ml
View
3 stdlib/camlinternalFormat.ml
@@ -1,5 +1,8 @@
open CamlinternalFormatBasics
+let legacy_behavior =
+ try Sys.getenv "OCAML_LEGACY_FORMAT" <> "" with _ -> false
+
(******************************************************************************)
(* Types *)

0 comments on commit fb90637

Please sign in to comment.
Something went wrong with that request. Please try again.