[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 02a0bfbcdb 313/323: Add `beardbolt-ccj-extra-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 02a0bfbcdb 313/323: Add `beardbolt-ccj-extra-flags` option |
Date: |
Thu, 9 Mar 2023 10:58:59 -0500 (EST) |
branch: externals/beardbolt
commit 02a0bfbcdbe2120e8441dd4306dedf0653647950
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Add `beardbolt-ccj-extra-flags` option
* README.md: Mention new option.
* beardbolt.el (bb-ccj-extra-flags): New option.
(bb--guess-from-ccj): Use it.
---
README.md | 4 ++++
beardbolt.el | 8 ++++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index c4588751da..64cf727930 100644
--- a/README.md
+++ b/README.md
@@ -84,6 +84,10 @@ instead. Beardbolt will pick them up immediately on each
run.
* `beardbolt-execute`: If non-nil, run the resulting program in the
compilation buffer. If a string, run with these arguments. If t
runs without arguments.
+
+* `beardbolt-ccj-extra-flags`: A string of extra compilation flags to
+ append to the compilation command devined from
+ `compile_commands.json`.
<a name="benchmarks"></a>
### Benchmarks vs RMSbolt
diff --git a/beardbolt.el b/beardbolt.el
index da41dae1e1..06423ad854 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -73,6 +73,9 @@ Passed directly to compiler or disassembler."
(bb--defoption bb-execute nil
"Non-nil to run resulting program with these arguments."
:type 'string :safe (lambda (v) (or (null v) (eq t v) (stringp v))))
+(bb--defoption bb-ccj-extra-flags nil
+ "Extra flags for compilation command devined from compile_commands.json."
+ :type 'string :safe (lambda (v) (or (null v) (stringp v))))
(defface bb-current-line-face
'((t (:weight bold :inherit highlight)))
@@ -705,8 +708,9 @@ With prefix argument, choose from starter files in
`bb-starter-files'."
return (plist-get e :command)))
(cmd (bb--split-rm-double cmd "-o"))
(cmd (bb--split-rm-double cmd "-c"))
- (cmd (bb--split-rm-single cmd "-flto" #'string-prefix-p)))
- cmd))
+ (cmd (bb--split-rm-single cmd "-flto" #'string-prefix-p))
+ (cmd (bb--split-rm-single cmd "-O" #'string-prefix-p)))
+ (list cmd bb-ccj-extra-flags)))
;;;###autoload
(define-minor-mode bb-mode
- [elpa] externals/beardbolt 2633e20e66 274/323: * beardbolt.el (bb--reachable-p): Rework for small speed gain., (continued)
- [elpa] externals/beardbolt 2633e20e66 274/323: * beardbolt.el (bb--reachable-p): Rework for small speed gain., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 60fa7a3c05 280/323: Force asm output to be of a certain format, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b2dc0eb81d 284/323: Make beardbolt-disassemble work again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 730ea84796 290/323: bb-compile-delay can be nil, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2c798336b8 292/323: Tweak README.md, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c05a0be490 297/323: Add useful beardbolt-preserve-library-functions, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 26c0b918e4 301/323: Tweak README.md again, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e1e69080b7 303/323: Rename "output buffer" -> "asm buffer", ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt dbafc4a88c 304/323: Minor cleanup, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 68469cfb57 306/323: More misc minor rework to simplify code, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 02a0bfbcdb 313/323: Add `beardbolt-ccj-extra-flags` option,
ELPA Syncer <=
- [elpa] externals/beardbolt 6a71a16619 319/323: Simplify rainbow-clearing logic, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e403331350 322/323: * beardbolt.el (bb--synch-relation-overlays): Fix bug., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 4a6f289c94 002/323: Add very basic compilation of c files, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ac893146e3 019/323: Force dissasembly if we don't support asm, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f30a05624d 051/323: Add support for parsing .file directives, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 865d5a8c1a 111/323: Clean up CI config, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 7f61815c17 121/323: Try to fix bytecode issues, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e517cd4dbc 142/323: Remove unneeded disass-hidden-funcs overrides, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f89875215b 128/323: Fix byte-compilation warnings, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt cb0b781e82 143/323: Add rudimentary support for hack/hhvm, ELPA Syncer, 2023/03/09