diff --git a/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el b/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el index 14fb2b7..fd9ce5d 100644 --- a/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el +++ b/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el @@ -106,9 +106,8 @@ (let ((new-dir (read-directory-name "directory? "))) (with-current-buffer buffer (setq compilation-arguments - (cons (concat (car compilation-arguments) - (format " -I%s " - new-dir)) + (cons (string-replace "-I" (format "-I%s -I" new-dir) + (car compilation-arguments)) (cdr compilation-arguments))) (call-interactively #'recompile))))))