Removed the option "-o" when calling CPP (now ">").

This should fix the bug report from Jun about running ligo-compile on
MacOS, as "cpp" in XCode does not seem to support the "-o" option.
This commit is contained in:
Christian Rinderknecht 2019-05-02 16:26:35 +02:00
parent b8e5203d65
commit 7892175350
No known key found for this signature in database
GPG Key ID: 9446816CFD267040
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ let parse_file (source: string) : Ast.entry_point result =
* and suffix = ".pp.ligo"
* in prefix ^ suffix in
*
* let cpp_cmd = Printf.sprintf "cpp -traditional-cpp %s -o %s"
* let cpp_cmd = Printf.sprintf "cpp -traditional-cpp %s > %s"
* source pp_input in
* let%bind () = sys_command cpp_cmd in
*

View File

@ -13,7 +13,7 @@ let parse_file (source: string) : AST_Raw.t result =
and suffix = ".pp.ligo"
in prefix ^ suffix in
let cpp_cmd = Printf.sprintf "cpp -traditional-cpp %s -o %s"
let cpp_cmd = Printf.sprintf "cpp -traditional-cpp %s > %s"
source pp_input in
let%bind () = sys_command cpp_cmd in

View File

@ -35,10 +35,10 @@ let pp_input =
let cpp_cmd =
match EvalOpt.input with
None | Some "-" ->
Printf.sprintf "cpp -traditional-cpp%s - -o %s"
Printf.sprintf "cpp -traditional-cpp%s - > %s"
lib_path pp_input
| Some file ->
Printf.sprintf "cpp -traditional-cpp%s %s -o %s"
Printf.sprintf "cpp -traditional-cpp%s %s > %s"
lib_path file pp_input
let () =

View File

@ -53,10 +53,10 @@ let pp_input =
let cpp_cmd =
match EvalOpt.input with
None | Some "-" ->
Printf.sprintf "cpp -traditional-cpp%s - -o %s"
Printf.sprintf "cpp -traditional-cpp%s - > %s"
lib_path pp_input
| Some file ->
Printf.sprintf "cpp -traditional-cpp%s %s -o %s"
Printf.sprintf "cpp -traditional-cpp%s %s > %s"
lib_path file pp_input
let () =