branch: externals/beardbolt
commit 0bfb5727055f43892466dfeeaa897439f5cae5f0
Author: David Hashe <[email protected]>
Commit: GitHub <[email protected]>
Close #5: Quote buffer filename for compile command
* beardbolt.el (bb--c/c++-setup): Escape buffer filename
---
beardbolt.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/beardbolt.el b/beardbolt.el
index 9463146b90..3acb460e9c 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -223,7 +223,7 @@ Useful if you have multiple objdumpers and want to select
between them")
"-o" ,out
,@(if modified-p
`("-x" ,language "-" "<" ,in)
- `(,(buffer-file-name)))))
+ `(,(shell-quote-argument
(buffer-file-name))))))
(assemble (in out) `("&&" ,cc "-c" ,in "-o" ,out))
(link (in out) `("&&" ,cc ,in "-fsanitize=address"
"-o" ,out))
(execute (in) `("&& (" ,in