Fix aquery crash for bitcode feature
Without gating this with `expand_if_available` aquery crashes with this
feature enabled with this error:
```
com.google.devtools.build.lib.rules.cpp.CcToolchainFeatures$ExpansionException: Invalid toolchain configuration: Cannot find variable named 'bitcode_symbol_map_path'.
```
Closes
@@ -5363,7 +5363,9 @@ def _impl(ctx):
ACTION_NAMES.objc_executable,
ACTION_NAMES.objcpp_executable,
],
- flag_groups = [flag_group(flags = [
+ flag_groups = [
+ flag_group(
+ flags = [
"-fembed-bitcode",
"-Xlinker",
"-bitcode_verify",
@@ -5373,7 +5375,10 @@ def _impl(ctx):
"-bitcode_symbol_map",
"-Xlinker",
"BITCODE_TOUCH_SYMBOL_MAP=%{bitcode_symbol_map_path}",
- ])],
+ ],
+ expand_if_available = "bitcode_symbol_map_path",
+ ),
+ ],
),
],
)
