Add {objc,objcpp}_compile actions to action sets
The Objective-C compile actions weren't included in the
'all_compile_actions', 'preprocessor_compile_actions', and
'codegen_compile_actions' sets.
Adding them makes these action sets a bit more useful as
demonstrated by the fact that we can now use them to set
some default compiler flags below.
Closes
@@ -120,6 +120,8 @@ def _impl(ctx):
all_compile_actions = [
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
+ ACTION_NAMES.objc_compile,
+ ACTION_NAMES.objcpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
@@ -142,6 +144,8 @@ def _impl(ctx):
preprocessor_compile_actions = [
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
+ ACTION_NAMES.objc_compile,
+ ACTION_NAMES.objcpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.preprocess_assemble,
ACTION_NAMES.cpp_header_parsing,
@@ -152,6 +156,8 @@ def _impl(ctx):
codegen_compile_actions = [
ACTION_NAMES.c_compile,
ACTION_NAMES.cpp_compile,
+ ACTION_NAMES.objc_compile,
+ ACTION_NAMES.objcpp_compile,
ACTION_NAMES.linkstamp_compile,
ACTION_NAMES.assemble,
ACTION_NAMES.preprocess_assemble,
@@ -2016,20 +2022,7 @@ def _impl(ctx):
with_features = [with_feature_set(features = ["fastbuild"])],
),
flag_set(
- actions = [
- ACTION_NAMES.assemble,
- ACTION_NAMES.preprocess_assemble,
- ACTION_NAMES.linkstamp_compile,
- ACTION_NAMES.c_compile,
- ACTION_NAMES.cpp_compile,
- ACTION_NAMES.cpp_header_parsing,
- ACTION_NAMES.cpp_module_compile,
- ACTION_NAMES.cpp_module_codegen,
- ACTION_NAMES.lto_backend,
- ACTION_NAMES.clif_match,
- ACTION_NAMES.objc_compile,
- ACTION_NAMES.objcpp_compile,
- ],
+ actions = all_compile_actions,
flag_groups = [
flag_group(
flags = [
@@ -2043,20 +2036,7 @@ def _impl(ctx):
with_features = [with_feature_set(features = ["opt"])],
),
flag_set(
- actions = [
- ACTION_NAMES.assemble,
- ACTION_NAMES.preprocess_assemble,
- ACTION_NAMES.linkstamp_compile,
- ACTION_NAMES.c_compile,
- ACTION_NAMES.cpp_compile,
- ACTION_NAMES.cpp_header_parsing,
- ACTION_NAMES.cpp_module_compile,
- ACTION_NAMES.cpp_module_codegen,
- ACTION_NAMES.lto_backend,
- ACTION_NAMES.clif_match,
- ACTION_NAMES.objc_compile,
- ACTION_NAMES.objcpp_compile,
- ],
+ actions = all_compile_actions,
flag_groups = [flag_group(flags = ["-g"])],
with_features = [with_feature_set(features = ["dbg"])],
),
