updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / mingw32-ocaml / mingw32-ocaml-i386-profiling.patch
blob5b1223f37f34f16f573e11d832b166b46a087935
1 Make sure that PROFILE_* macros are defined on MinGW. Not sure
2 what to put in them yet, so at the moment they are just empty.
4 Index: build-tree/ocaml-3.12.0/asmrun/i386.S
5 ===================================================================
6 --- build-tree.orig/ocaml-3.12.0/asmrun/i386.S 2008-08-01 03:04:57.000000000 -0500
7 +++ build-tree/ocaml-3.12.0/asmrun/i386.S 2010-02-10 16:15:41.000000000 -0600
8 @@ -64,6 +64,9 @@
9 popl %edx; popl %ecx; popl %eax; popl %ebp
10 #define PROFILE_C \
11 pushl %ebp; movl %esp, %ebp; call Lmcount$stub; popl %ebp
12 +#elif defined(SYS_mingw)
13 +#define PROFILE_CAML
14 +#define PROFILE_C
15 #endif
16 #else
17 #define PROFILE_CAML