summaryrefslogtreecommitdiff
path: root/tools/options.py
diff options
context:
space:
mode:
authorZhaoCake <[email protected]>2025-03-02 17:27:23 +0800
committerRbb666 <[email protected]>2025-03-10 13:47:25 +0800
commitdb359af5c02207bf0f55ef59b40ea3309edbd890 (patch)
tree766dfcc96318f1e136206305fc852094efb9f376 /tools/options.py
parentf5c24a9bfc9cc67f33275bf6e8e39f85ba0e4c9c (diff)
[fix][feature]Default to the previous fully packaged logic, add a 'dist-strip' option for simplified packaging.
Diffstat (limited to 'tools/options.py')
-rw-r--r--tools/options.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/options.py b/tools/options.py
index 2e92de8bd3..2a19e1ac0e 100644
--- a/tools/options.py
+++ b/tools/options.py
@@ -20,7 +20,7 @@
# Change Logs:
# Date Author Notes
# 2022-04-20 WuGensheng Add Options to SCons
-#
+# 2025-03-02 ZhaoCake Add Options about compile_commands
from SCons.Script import AddOption
import platform
@@ -147,4 +147,10 @@ def AddOptions():
help = 'View attachconfig or add attach to.config.'+\
'e.g. scons --attach=? View all attachconfig for the current bsp.'+\
' or scons --attach=component.cherryusb_cdc Set option component.cherryusb_cdc inside attachconfig to.config.'+\
- ' or scons --attach=default Restore.config and rtconfig to before attch was set.') \ No newline at end of file
+ ' or scons --attach=default Restore.config and rtconfig to before attch was set.')
+ AddOption('--dist-strip',
+ dest='dist_strip',
+ action='store_true',
+ default=False,
+ help='create minimal distribution based on compile_commands.json.'+\
+ 'So you should run `bear -- scons` to generate compile_commands.json first.') \ No newline at end of file