diff options
author | 2015-07-15 10:36:12 +0200 | |
---|---|---|
committer | 2015-07-15 10:36:12 +0200 | |
commit | 0aa2544d04dbd4b6ee665b551ed165e4fb02d2fa (patch) | |
tree | 12e8931a4a56da1a1bdfb89d670f4ba38fe08e1f /kernel/nativelib.ml | |
parent | cec4741afacd2e80894232850eaf9f9c0e45d6d7 (diff) |
Imported Upstream version 8.5~beta2+dfsgupstream/8.5_beta2+dfsg
Diffstat (limited to 'kernel/nativelib.ml')
-rw-r--r-- | kernel/nativelib.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/nativelib.ml b/kernel/nativelib.ml index dd47bc06..605c1225 100644 --- a/kernel/nativelib.ml +++ b/kernel/nativelib.ml @@ -77,7 +77,10 @@ let call_compiler ml_filename = ::include_dirs @ ["-impl"; ml_filename] in if !Flags.debug then Pp.msg_debug (Pp.str (compiler_name ^ " " ^ (String.concat " " args))); - CUnix.sys_command compiler_name args = Unix.WEXITED 0, link_filename + try CUnix.sys_command compiler_name args = Unix.WEXITED 0, link_filename + with Unix.Unix_error (e,_,_) -> + Pp.(msg_warning (str (Unix.error_message e))); + false, link_filename let compile fn code = write_ml_code fn code; |