updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / mingw32-ocaml / mingw32-ocaml-force-os-type.patch
blob273b6a77f047d92787a39b6b67b5fb441876b349
1 Displayed os_type when calling ocamlc -config is wrong.
2 This patch forces the correct value without changing anything
3 in the Sys module.
5 Index: build-tree/ocaml-3.12.0/utils/config.mlp
6 ===================================================================
7 --- build-tree.orig/ocaml-3.12.0/utils/config.mlp 2010-05-19 13:29:38.000000000 +0200
8 +++ build-tree/ocaml-3.12.0/utils/config.mlp 2010-06-23 19:32:00.000000000 +0200
9 @@ -83,11 +83,7 @@
10 let ext_lib = "%%EXT_LIB%%"
11 let ext_dll = "%%EXT_DLL%%"
13 -let default_executable_name =
14 - match Sys.os_type with
15 - "Unix" -> "a.out"
16 - | "Win32" | "Cygwin" -> "camlprog.exe"
17 - | _ -> "camlprog"
18 +let default_executable_name = "camlprog.exe"
20 let systhread_supported = %%SYSTHREAD_SUPPORT%%;;
22 @@ -114,7 +110,7 @@
23 p "ext_asm" ext_asm;
24 p "ext_lib" ext_lib;
25 p "ext_dll" ext_dll;
26 - p "os_type" Sys.os_type;
27 + p "os_type" "Win32";
28 p "default_executable_name" default_executable_name;
29 p_bool "systhread_supported" systhread_supported;
30 flush oc;