That's a bug

This commit is contained in:
Benson Chu 2024-08-27 15:54:06 -05:00
parent f756c72a7e
commit b429d8a12e

View file

@ -111,7 +111,7 @@
(cdr compilation-arguments)))
(call-interactively #'recompile)))))
(defun ll/diff-c-on-two-compilations (file )
(defun ll/diff-c-on-two-compilations (file action)
(let ((comm (ll/build-clang-command (lls/un-trampify file) action))
(second-command (ll/build-clang-command (lls/un-trampify file) action))
(pipe (if (y-or-n-p "Diff assembly (y) or debug (n)? ")
@ -125,7 +125,7 @@
(defun ll/act-on-c-file (file)
(let* ((action (aml/read-action-map ll/c-file-action-map)))
(if (eq action 'diff)
(ll/diff-c-on-two-compilations file)
(ll/diff-c-on-two-compilations file action)
(let ((comm (ll/build-clang-command (lls/un-trampify file) action)))
(compilation-start
comm