let require_wp log =
once "wp"
(fun () ->
let denv = Wp_parameters.get_output () in
let dshare = Wp_parameters.get_share() in
let file = Format.sprintf "%s/wp.v" dshare in
let fcoq = Format.sprintf "%s/wp.v" denv in
Command.copy file fcoq ;
let args = [| "-noglob" ; fcoq |] in
let stdout = Buffer.create 512 in
let timeout = Wp_parameters.Timeout.get() in
Log.command log "coqc" args ;
Task.command ~timeout ~stdout "coqc" args
>>? Log.output log stdout
>>= result_compile file)