ITADN

[Feature request] Add per_file_swiftcopt / host_ per_file_swiftcopt flags

#1659Opencsmulhern 创建于 2026-03-06
C
csmulherncommented
Thes `per_file_copt`[1] and `host_per_file_copt`[2] flags are super useful for customizing C/C++ compiler flags based on source path. A common use case is to e.g. optimize external dependencies or suppress warnings for sources in `external/`. It would be useful to have an analogue for `swiftc` invocations provided by `rules_swift`. [1]: https://bazel.build/reference/command-line-reference#flag--per_file_copt [2]: https://bazel.build/reference/command-line-reference#flag--host_per_file_copt
2 条评论