Skip to content

Commit 978c78d

Browse files
committed
turn on {!Sys.backend_type} (works)
1 parent c5d9fbe commit 978c78d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/sys.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ val os_type : string
9393
- ["Win32"] (for MS-Windows, OCaml compiled with MSVC++ or Mingw),
9494
- ["Cygwin"] (for MS-Windows, OCaml compiled with Cygwin). *)
9595

96-
(* val backend_type : backend_type *)
96+
val backend_type : backend_type
9797
(** Backend type currently executing the OCaml program.
98-
@ since 4.03.0
98+
@ since 4.04.0
9999
*)
100100

101101
val unix : bool

stdlib/sys.mlp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ external max_wosize : unit -> int = "%max_wosize"
3232
external unix : unit -> bool = "%ostype_unix"
3333
external win32 : unit -> bool = "%ostype_win32"
3434
external cygwin : unit -> bool = "%ostype_cygwin"
35-
(* external get_backend_type : unit -> backend_type = "%backend_type" *)
35+
external get_backend_type : unit -> backend_type = "%backend_type"
3636

3737
let (executable_name, argv) = get_argv()
3838
let (os_type, _, _) = get_config()
39-
(* let backend_type = get_backend_type () *)
39+
let backend_type = get_backend_type ()
4040
let big_endian = big_endian ()
4141
let word_size = word_size ()
4242
let int_size = int_size ()

0 commit comments

Comments
 (0)