Linking with runtime library

This commit is contained in:
Dmitry Boulytchev 2019-03-07 17:58:40 +03:00
parent f14bbf8fcb
commit 3bf36ae719

View file

@ -570,5 +570,5 @@ let build prog name =
Printf.fprintf outf "%s" (genasm prog); Printf.fprintf outf "%s" (genasm prog);
close_out outf; close_out outf;
let inc = try Sys.getenv "RC_RUNTIME" with _ -> "../runtime" in let inc = try Sys.getenv "RC_RUNTIME" with _ -> "../runtime" in
Sys.command (Printf.sprintf "gcc -g -m32 -o %s %s/gc_runtime.o %s/runtime.o %s.s" name inc inc name) Sys.command (Printf.sprintf "gcc -g -m32 -o %s %s.s %s/runtime.a" name name inc)