Improve clang command detection

This commit is contained in:
Benson Chu 2023-10-06 16:40:20 -05:00
parent 218b1b0ef8
commit 3da03eaf7d

View file

@ -95,11 +95,11 @@
;; TODO: assuming all commands will be llc
(mapcar #'(lambda (x)
(let ((res x))
(setq res (string-replace "RUN: not " "RUN: " res))
(setq res (string-replace "not " "" res))
(string-match (rx line-start
(group
(or "llc" "%clang" "%clang_cc1"))
" ")
(optional "%")
(+ (not space))))
x)
(setq res
(pcase (match-string 1 x)