Compile with proper include to pervasives.h.

master
Adrien Guatto 13 years ago
parent acad16b98a
commit a15276f053

@ -34,11 +34,8 @@ and add_include d =
(* where is the standard library *) (* where is the standard library *)
let locate_stdlib () = let locate_stdlib () =
let stdlib = try print_string (try Sys.getenv "HEPTLIB" with Not_found -> standard_lib);
Sys.getenv "HEPTLIB" print_newline ()
with
Not_found -> standard_lib in
Format.printf "Standard library in %s@." stdlib
let show_version () = let show_version () =
Format.printf "The Heptagon compiler, version %s (%s)@." Format.printf "The Heptagon compiler, version %s (%s)@."

@ -30,4 +30,4 @@ if [ $compile -eq 1 ]; then
fi fi
# Compile it with GCC # Compile it with GCC
cc -std=c99 $REP/*.c -o `basename $F .ept` || exit 1 cc -I `$HEPTC -where`/c -std=c99 $REP/*.c -o `basename $F .ept` || exit 1

Loading…
Cancel
Save