summaryrefslogtreecommitdiff
path: root/utils/ccomp.ml
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2012-01-16 09:05:37 +0000
committerAlain Frisch <alain@frisch.fr>2012-01-16 09:05:37 +0000
commitbfb35c4fce698c2dacbe5eab2f2a7086cff79b3c (patch)
treeb80eb1438d915b37e06d230d6a7e8d047b17e0a9 /utils/ccomp.ml
parentee95e9fd9125c4b8dcff20be96dab9e5ba509ebb (diff)
downloadocaml-bfb35c4fce698c2dacbe5eab2f2a7086cff79b3c.tar.gz
#5478: makes it possible to specify a custom 'ar' command.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12027 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'utils/ccomp.ml')
-rw-r--r--utils/ccomp.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/ccomp.ml b/utils/ccomp.ml
index 881223ef9f..66525e5b9e 100644
--- a/utils/ccomp.ml
+++ b/utils/ccomp.ml
@@ -73,9 +73,10 @@ let create_archive archive file_list =
command(Printf.sprintf "link /lib /nologo /out:%s %s"
quoted_archive (quote_files file_list))
| _ ->
+ assert(String.length Config.ar > 0);
let r1 =
- command(Printf.sprintf "ar rc %s %s"
- quoted_archive (quote_files file_list)) in
+ 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)