File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ stores fingerprint and auxiliary
353
353
files. This directory can be defined:
354
354
- via the environment variable
355
355
that is read below, or
356
+ - via the command-line option
356
357
`--cache-dir`
357
358
*)
358
359
let cachedir = ref " "
@@ -361,6 +362,7 @@ let () =
361
362
cachedir := Sys. getenv " TLAPM_CACHE_DIR" ;
362
363
with Not_found ->
363
364
cachedir := " .tlacache"
365
+ let set_tlapm_cache_dir dir = cachedir := dir
364
366
365
367
366
368
let keep_going = ref false
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ val keep_going : bool ref;; (* FIXME check still used ? *)
90
90
val suppress_all : bool ref ;;
91
91
val set_smt_logic : string -> unit ;;
92
92
val set_smt_solver : string -> unit ;;
93
+ val set_tlapm_cache_dir : string -> unit ;;
93
94
val printconfig : bool -> string ;;
94
95
val print_config_toolbox : bool -> string ;;
95
96
val check_zenon_ver : unit -> unit ;;
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ let mkdir_tlaps t =
68
68
cache directory at the path \
69
69
`%s`. Please ensure that if \
70
70
a path is given via the \
71
+ command-line parameter \
72
+ `--cache-dir`, or via the \
71
73
variable `TLAPM_CACHE_DIR` of \
72
74
the runtime environment, \
73
75
that a directory at that path \
Original file line number Diff line number Diff line change @@ -212,6 +212,16 @@ let init () =
212
212
" <f> load fingerprints from file <f> (save as usual)" ;
213
213
" --fpp" , Arg. Set fp_deb,
214
214
" print the fingerprints of obligations in toolbox messages" ;
215
+ " --cache-dir" , Arg. String set_tlapm_cache_dir,
216
+ " <directory> save auxiliary and \
217
+ temporary files under <directory>. \
218
+ Alternatively, this directory \
219
+ can be defined via the variable \
220
+ `TLAPM_CACHE_DIR` of the runtime \
221
+ environment. The command-line \
222
+ parameter takes precedence over \
223
+ the environment variable. If neither \
224
+ is specified, the default value is \" .tlacache\" ." ;
215
225
]
216
226
in
217
227
let opts = Arg. align opts in
You can’t perform that action at this time.
0 commit comments