Skip to content

Commit 99c8d22

Browse files
committed
correct length of list checking
1 parent 3b12445 commit 99c8d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/incremental/makefileUtil.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let run_cilly (path: string) ~all_cppflags =
6161
remove_comb_files path;
6262
(* Combine source files with make using cilly as compiler *)
6363
let gcc_path = GobConfig.get_string "exp.gcc_path" in
64-
let cflags = if List.length all_cppflags > 0 then " CFLAGS+=" ^ Filename.quote (String.join " " all_cppflags) else "" in
64+
let cflags = if all_cppflags = [] then " CFLAGS+=" ^ Filename.quote (String.join " " all_cppflags) else "" in
6565
let (exit_code, output) = exec_command ~path ("make CC=\"cilly --gcc=" ^ gcc_path ^ " --merge --keepmerged\"" ^cflags ^ " " ^
6666
"LD=\"cilly --gcc=" ^ gcc_path ^ " --merge --keepmerged\"") in
6767
print_string output;

0 commit comments

Comments
 (0)