Compile with proper include to pervasives.h.
This commit is contained in:
parent
acad16b98a
commit
a15276f053
2 changed files with 3 additions and 6 deletions
|
@ -34,11 +34,8 @@ and add_include d =
|
|||
|
||||
(* where is the standard library *)
|
||||
let locate_stdlib () =
|
||||
let stdlib = try
|
||||
Sys.getenv "HEPTLIB"
|
||||
with
|
||||
Not_found -> standard_lib in
|
||||
Format.printf "Standard library in %s@." stdlib
|
||||
print_string (try Sys.getenv "HEPTLIB" with Not_found -> standard_lib);
|
||||
print_newline ()
|
||||
|
||||
let show_version () =
|
||||
Format.printf "The Heptagon compiler, version %s (%s)@."
|
||||
|
|
|
@ -30,4 +30,4 @@ if [ $compile -eq 1 ]; then
|
|||
fi
|
||||
|
||||
# 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…
Reference in a new issue