Skip to content

Commit

Permalink
Fix remaining conflicts in utils/ (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccasin authored Oct 18, 2023
1 parent 9e8b5a0 commit 7445248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
20 changes: 2 additions & 18 deletions utils/ccomp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,9 @@ let create_archive archive file_list =
| _ ->
assert(String.length Config.ar > 0);
command(Printf.sprintf "%s rc %s %s"
<<<<<<< HEAD
Config.ar quoted_archive (quote_files file_list))
||||||| merged common ancestors
let r1 =
command(Printf.sprintf "%s rc %s %s"
Config.ar quoted_archive (quote_files file_list)) in
if r1 <> 0 || String.length Config.ranlib = 0
then r1
else command(Config.ranlib ^ " " ^ quoted_archive)
=======
Config.ar quoted_archive
(quote_files ~response_files:Config.ar_supports_response_files
file_list))
>>>>>>> ocaml/5.1

let expand_libname cclibs =
cclibs |> List.map (fun cclib ->
Expand Down Expand Up @@ -210,14 +199,9 @@ let call_linker ?(native_toplevel = false) mode output_name files extra =
)
(Filename.quote output_name)
"" (*(Clflags.std_include_flag "-I")*)
<<<<<<< HEAD
(if native_toplevel then ""
else quote_prefixed "-L" (Load_path.get_paths ()))
||||||| merged common ancestors
(quote_prefixed "-L" (Load_path.get_paths ()))
=======
(quote_prefixed ~response_files:true "-L" (Load_path.get_paths ()))
>>>>>>> ocaml/5.1
else
quote_prefixed ~response_files:true "-L" (Load_path.get_paths ()))
(String.concat " " (List.rev !Clflags.all_ccopts))
(quote_files ~response_files:true files)
extra
Expand Down
10 changes: 0 additions & 10 deletions utils/consistbl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,12 @@ end) = struct
with Not_found ->
raise (Not_available name)

<<<<<<< HEAD
let set tbl name data crc source = Module_name.Tbl.add tbl name (data, crc, source)

let source tbl name = thd3 (Module_name.Tbl.find tbl name)

let find t name =
match Module_name.Tbl.find t name with
| exception Not_found -> None
| (data, crc, _) -> Some (data, crc)
||||||| merged common ancestors
let set tbl name crc source = Module_name.Tbl.add tbl name (crc, source)

let source tbl name = snd (Module_name.Tbl.find tbl name)
=======
let source tbl name = snd (Module_name.Tbl.find tbl name)
>>>>>>> ocaml/5.1

let extract l tbl =
let l = List.sort_uniq Module_name.compare l in
Expand Down

0 comments on commit 7445248

Please sign in to comment.