Skip to content

Commit 75cfe4c

Browse files
committed
Fix all_cppflags special case in MakefileUtil
1 parent 384b25c commit 75cfe4c

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 all_cppflags = [] then " CFLAGS+=" ^ Filename.quote (String.join " " all_cppflags) else "" in
64+
let cflags = if all_cppflags = [] then "" else " CFLAGS+=" ^ Filename.quote (String.join " " all_cppflags) 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)