Ensure tablegen target directory exists

This commit is contained in:
Benson Chu 2023-05-17 09:19:12 -05:00
parent 721133b7c1
commit 56702c098d

View file

@ -36,9 +36,7 @@
(string-join it " ")))
(defun ll-tblgen/gen-command (file flags output-file)
(let ((bin (car (lls/get-tool "llvm-tblgen$")))
)
(let ((bin (car (lls/get-tool "llvm-tblgen$"))))
(format "%s %s %s %s"
bin
file
@ -142,7 +140,10 @@
((eq action ?p)
(setq comm (concat comm " --print-records")))
((eq action ?c)
(setq comm (concat comm
(setq comm (concat (format "mkdir -p %s"
(diredp-parent-dir out))
" && "
comm
(format " -o %s"
out)))))