diff options
author | Hendrik Tews <hendrik@askra.de> | 2016-11-02 22:41:19 +0100 |
---|---|---|
committer | Hendrik Tews <hendrik@askra.de> | 2016-11-02 22:41:19 +0100 |
commit | 01710211aeb44831a809d215332d8094f16c9e0e (patch) | |
tree | e370fae4bfea8ccda58b6e959c5ac6652ee86a83 /coq/coq-par-compile.el | |
parent | 46680b32764da142337b6676ee7afa6eec14c9bc (diff) |
fix #123, also improve debugging output
Diffstat (limited to 'coq/coq-par-compile.el')
-rw-r--r-- | coq/coq-par-compile.el | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/coq/coq-par-compile.el b/coq/coq-par-compile.el index 0cc8c3e5..b92ddc22 100644 --- a/coq/coq-par-compile.el +++ b/coq/coq-par-compile.el @@ -526,6 +526,9 @@ break." (cons command-intro this-command) this-command)) coqdep-status coqdep-output) + (if coq-debug-auto-compilation + (message "Run synchronously: %s" + (mapconcat 'identity full-command " "))) ;; (if coq-debug-auto-compilation ;; (message "CPGLD: call coqdep arg list: %s" coqdep-arguments)) (with-temp-buffer @@ -569,7 +572,7 @@ function returns () if MODULE-ID comes from the standard library." (coq-par-get-library-dependencies temp-require-file coq-load-path - (concat "echo \"" coq-string "\" > " temp-require-file)))) + (concat "echo \"" coq-string "\" > " temp-require-file ";")))) (delete-file temp-require-file)) (if coq-debug-auto-compilation (message "coq-par-get-library-dependencies delivered \"%s\"" result)) @@ -1207,13 +1210,18 @@ This function must be evaluated with the buffer that triggered the compilation as current, otherwise a wrong `coq-load-path' might be used." (if coq-debug-auto-compilation - (message "handle required module \"%s\" with from \"%s\"" module-id from)) + (if from + (message "handle required module \"%s\" from \"%s\"" module-id from) + (message "handle required module \"%s\" without from clause" + module-id))) (let ((module-obj-file (coq-par-map-module-id-to-obj-file module-id coq-load-path from)) module-job) (if coq-debug-auto-compilation - (message "check compilation for module %s from object file %s" - module-id module-obj-file)) + (if module-obj-file + (message "check compilation for module %s from object file %s" + module-id module-obj-file) + (message "nothing to check for module %s" module-id))) ;; coq-par-map-module-id-to-obj-file currently returns () for ;; standard library modules! (when (and module-obj-file @@ -1266,16 +1274,21 @@ there is no last compilation job." (progn (assert (not (coq-par-job-is-ready coq-last-compilation-job)) nil "last compilation job from previous compilation ready") - (put coq-last-compilation-job 'queueitems require-items) + (put coq-last-compilation-job 'queueitems + (nconc (get coq-last-compilation-job 'queueitems) + require-items)) (if coq-debug-auto-compilation - (message "%s: attach %s items" + (message "%s: attach %s items (containing now %s items)" (get coq-last-compilation-job 'name) - (length require-items)))) + (length require-items) + (length (get coq-last-compilation-job 'queueitems))))) ;; or add them directly to queueitems if there is no compilation job ;; (this happens if the modules are ignored for compilation) (setq queueitems (nconc queueitems require-items)) (if coq-debug-auto-compilation - (message "attach %s items to queueitems" (length require-items)))))) + (message "attach %s items to queueitems (containing now %s items)" + (length require-items) + (length queueitems)))))) (defun coq-par-item-require-predicate (item) |