feat: add atomic profile update flag and update clean command
- Add `-fprofile-update=atomic` flag to both GCC and Clang compiler configurations for thread-safe coverage data updates - Change `--all` argument in clean command to default to True and add `-a` short option for consistency with common CLI patterns
This commit is contained in:
@@ -611,6 +611,7 @@ class GccCompiler(Compiler):
|
||||
"-O2",
|
||||
"-g",
|
||||
"--coverage",
|
||||
"-fprofile-update=atomic",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
],
|
||||
@@ -650,6 +651,7 @@ class ClangCompiler(Compiler):
|
||||
"-O2",
|
||||
"-g",
|
||||
"--coverage",
|
||||
"-fprofile-update=atomic",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
],
|
||||
@@ -1070,7 +1072,9 @@ def create_parser():
|
||||
# clean 命令
|
||||
clean_parser = subparsers.add_parser("clean", help="清理构建产物")
|
||||
add_common_args(clean_parser)
|
||||
clean_parser.add_argument("--all", action="store_true", help="清理所有模式")
|
||||
clean_parser.add_argument(
|
||||
"-a", "--all", action="store_true", default=True, help="清理所有模式"
|
||||
)
|
||||
|
||||
# tree 命令
|
||||
tree_parser = subparsers.add_parser("tree", help="显示依赖树")
|
||||
|
||||
Reference in New Issue
Block a user