"Make" variable expansion support was added to rules_apple in this commit and shipped with version 3.6.0. This allows for Starlark like this to work without requiring a --test_env in a bazelrc.
This works well enough when building with Bazel's CLI. With Xcode, however, the scheme that is generated for this test produces the uninterpolated value for the env. Is this possible to support in the xcodeproj generator?
Reproduction steps
Create a string_flag with a make_variable value
Create a *_unit_test that takes the string_flag as one of its toolchains and expands the value in its env attr.
Create an xcodeproj that takes the unit test as a top-level target.
Generate the xcodeproj.
Expected behavior
Observe that the generated scheme has the literal $(MY_MAKE_VAR) (or whatever your make_variable was named), and not the interpolated value from bazelrc or even the default value.
rules_xcodeproj version
2.5.1
Xcode version
15F31d
Bazel version
7.2.1
rules_apple version
3.6.0
rules_swift version
2.0.0
Additional information
I am using incremental generation and automatic scheme generation.
Description
"Make" variable expansion support was added to rules_apple in this commit and shipped with version 3.6.0. This allows for Starlark like this to work without requiring a
--test_env
in a bazelrc.This works well enough when building with Bazel's CLI. With Xcode, however, the scheme that is generated for this test produces the uninterpolated value for the
env
. Is this possible to support in the xcodeproj generator?Reproduction steps
string_flag
with amake_variable
value*_unit_test
that takes thestring_flag
as one of itstoolchains
and expands the value in itsenv
attr.xcodeproj
that takes the unit test as a top-level target.Expected behavior
Observe that the generated scheme has the literal
$(MY_MAKE_VAR)
(or whatever yourmake_variable
was named), and not the interpolated value from bazelrc or even the default value.rules_xcodeproj version
2.5.1
Xcode version
15F31d
Bazel version
7.2.1
rules_apple version
3.6.0
rules_swift version
2.0.0
Additional information
I am using incremental generation and automatic scheme generation.