mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Improve clang command detection
This commit is contained in:
parent
218b1b0ef8
commit
3da03eaf7d
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue