diff options
| author | Meco Man <[email protected]> | 2023-01-12 00:45:02 -0500 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-01-12 01:43:44 -0500 |
| commit | b3105414717a6670b770621f2d0cd2d6eee18e02 (patch) | |
| tree | 1916c0f966b703639bd44b1ec5e1b21ce5dfe0be /tools/options.py | |
| parent | fcf2367966265ed06d7495497f6ad43e300d0792 (diff) | |
[env] add scons --strict
此commit意图在脚本中增加 scons --strict命令,使用该命令编译工程时,会自动将CFLAGS CXXFLAGS设置为 Werrors,即较为严格的编译模式,任何警告都会当做错误来处理。
该命令主要用于CI,在CI执行bsp编译时,可以使用 scons --strict命令。现在QEMU的rtconfig.py 为了CI检查,直接将CFLAGS加上了Werrors,导致正常编译过程中也把警告当做了错误,对日常使用该bsp造成了影响。
Diffstat (limited to 'tools/options.py')
| -rw-r--r-- | tools/options.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/options.py b/tools/options.py index 3d705a792f..b02b81b5a3 100644 --- a/tools/options.py +++ b/tools/options.py @@ -85,6 +85,11 @@ def AddOptions(): dest = 'target', type = 'string', help = 'set target project: mdk/mdk4/mdk5/iar/vs/vsc/ua/cdk/ses/makefile/eclipse/codelite/cmake') + AddOption('--strict', + dest='strict-compiling', + help='Compiling project with strict mode and ALL warning will be errors', + action='store_true', + default=False) AddOption('--cc-prefix', '--exec-prefix', dest = 'exec-prefix', type = 'string', |
