diff options
| author | Maxime Dénès | 2015-01-15 13:28:21 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2015-01-15 13:28:21 +0100 |
| commit | d66b734336cf04a94ac3ef1bd129dfcd3bba92d2 (patch) | |
| tree | f8f66262655d7ad742b81a93e97c63f036454b42 /tools | |
| parent | bdcef127b212f6acd85d4eeb16a008491bd50740 (diff) | |
Make -print-mod-uid accept a list of files.
Solves an efficiency problem in Makefiles generated by coq_makefile.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/coq_makefile.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/coq_makefile.ml b/tools/coq_makefile.ml index 28b86ddc78..badaf280e4 100644 --- a/tools/coq_makefile.ml +++ b/tools/coq_makefile.ml @@ -503,9 +503,14 @@ let parameters () = print "$(call includecmdwithout@,$(COQBIN)coqtop -config)\n\n"; print "TIMED=\nTIMECMD=\nSTDTIME?=/usr/bin/time -f \"$* (user: %U mem: %M ko)\"\n"; print "TIMER=$(if $(TIMED), $(STDTIME), $(TIMECMD))\n\n"; + print "vo_to_obj = $(addsuffix .o,\\\n"; + print " $(filter-out Warning: Error:,\\\n"; + print " $(shell $(COQBIN)coqtop -q -noinit -batch -quiet -print-mod-uid $(1))))\n\n" +(* print "vo_to_obj = $(addsuffix .o,$(foreach vo,$(1),\\\n"; print " $(addprefix $(dir $(vo)),$(addprefix .coq-native/,$(filter-out Warning: Error:,$(firstword \\\n"; print " $(shell $(COQBIN)coqtop -q -noinit -batch -quiet -print-mod-uid $(vo))))))))\n\n" + *) let include_dirs (inc_ml,inc_i,inc_r) = let parse_ml_includes l = List.map (fun (x,_) -> "-I \"" ^ x ^ "\"") l in |
