[llvm-commits] [llvm] r42129 - /llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
Gordon Henriksen
gordonhenriksen at mac.com
Wed Sep 19 03:21:24 PDT 2007
Hi Gabor,
I'll get rid of the allocas. The uintnat and intnat types should come
from the ocaml headers. May I ask what version of ocaml do you have
installed?
ocamlc -version
As an immediate workaround, if you delete OCAMLC := ... from
Makefile.config, the bindings and tests will be skipped. (Probably
configuring --without-ocamlc or something would do the job, too. Maybe.)
On 2007-09-19, at 05:29, Gabor Greif wrote:
> Author: ggreif
> Date: Wed Sep 19 04:29:58 2007
> New Revision: 42129
>
> URL: http://llvm.org/viewvc/llvm-project?rev=42129&view=rev
> Log:
> include alloca.h if available. this helps Solaris, but intnat and
> uintnat types are still undefined, causing errors
>
> Modified:
> llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
>
> Modified: llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/
> llvm/llvm_ocaml.c?rev=42129&r1=42128&r2=42129&view=diff
>
> ======================================================================
> ========
> --- llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c (original)
> +++ llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c Wed Sep 19 04:29:58
> 2007
> @@ -19,7 +19,11 @@
> #include "caml/alloc.h"
> #include "caml/mlvalues.h"
> #include "caml/memory.h"
> -#include "stdio.h"
> +#include "llvm/Config/config.h"
> +#include <stdio.h>
> +#ifdef HAVE_ALLOCA_H
> +#include <alloca.h>
> +#endif
>
>
> /*===-- Modules
> -----------------------------------------------------------===*/
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
— Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070919/05d3d167/attachment.html>
More information about the llvm-commits
mailing list