aboutsummaryrefslogtreecommitdiffhomepage
path: root/ide
diff options
context:
space:
mode:
authorGravatar Paul Steckler <steck@stecksoft.com>2017-09-06 12:13:42 -0400
committerGravatar Paul Steckler <steck@stecksoft.com>2017-09-06 12:13:42 -0400
commit8d5165155dc4d9e4c03507609bf1b7a24a8ce4d0 (patch)
tree43ee87345150206cad5b83ba8fea00dc29113e11 /ide
parent03cccc325821b6fff42d2e0a91dd9ce8ec7c3fea (diff)
use get_arguments, String.concat, remove -I
Diffstat (limited to 'ide')
-rw-r--r--ide/coqide.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/ide/coqide.ml b/ide/coqide.ml
index 6b24740b3..2c8ce0049 100644
--- a/ide/coqide.ml
+++ b/ide/coqide.ml
@@ -439,9 +439,9 @@ let compile sn =
match sn.fileops#filename with
|None -> flash_info "Active buffer has no name"
|Some f ->
- let (_,args) = make_coqtop_args fn in
- let cmd = cmd_coqc#get ^ " -I " ^ (Filename.quote (Filename.dirname f))
- ^ (List.fold_left (fun accum arg -> accum ^ " " ^ arg) "" args)
+ let args = Coq.get_arguments sn.coqtop in
+ let cmd = cmd_coqc#get
+ ^ " " ^ String.concat " " args
^ " " ^ (Filename.quote f) ^ " 2>&1"
in
let buf = Buffer.create 1024 in