From 8bda62e798c4e89c8c3f9406327899e394f7be0f Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Tue, 16 Dec 2014 00:06:13 +0100 Subject: Fix for #3154: use CUnix.sys_command to call native compiler. Patch by CJ on bugzilla. CUnix.sys_command doesn't rely on a shell, so extra care with cmd.exe vs sh is no longer required. --- library/library.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/library.ml') diff --git a/library/library.ml b/library/library.ml index 97c416556..4fea6b836 100644 --- a/library/library.ml +++ b/library/library.ml @@ -724,7 +724,7 @@ let save_library_to ?todo dir f otab = (* Writing native code files *) if not !Flags.no_native_compiler then let fn = Filename.dirname f'^"/"^Nativecode.mod_uid_of_dirpath dir in - if not (Int.equal (Nativelib.compile_library dir ast fn) 0) then + if not (Nativelib.compile_library dir ast fn) then msg_error (str"Could not compile the library to native code. Skipping.") with reraise -> let reraise = Errors.push reraise in -- cgit v1.2.3