File extensions

This commit is contained in:
Benson Chu 2024-10-25 20:08:11 -07:00
parent 1088451c49
commit 3e1adb8de7

View file

@ -152,7 +152,12 @@
(defun ll/act-on-c-file (file)
(let* ((action (aml/read-action-map ll/c-file-action-map))
(output (ll/make-tmp-file file ".ll")))
(output (ll/make-tmp-file
file
(cond
((eq action 'assemble)
".S")
(t ".ll")))))
(if (eq action 'diff)
(ll/diff-c-on-two-compilations file action)
(let ((comm (ll/build-clang-command (lls/un-trampify file) action output)))