Migrate use of xcode_config_alias
Use the recently-introduced skylark late bound default instead.
PiperOrigin-RevId: 186043411
diff --git a/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl b/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
index 47a5a6c..4fed8bf 100644
--- a/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
+++ b/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
@@ -22,7 +22,6 @@
':tulsi_aspects_paths.bzl',
'AppleBundleInfo',
'IosExtensionBundleInfo',
- 'TULSI_CURRENT_XCODE_CONFIG',
)
# List of all of the attributes that can link from a Tulsi-supported rule to a
@@ -878,7 +877,8 @@
tulsi_sources_aspect = aspect(
implementation=_tulsi_sources_aspect,
attrs = {
- '_tulsi_xcode_config': attr.label(default=TULSI_CURRENT_XCODE_CONFIG) },
+ '_tulsi_xcode_config': attr.label(default=configuration_field(
+ fragment="apple", name="xcode_config_label")) },
attr_aspects=_TULSI_COMPILE_DEPS,
fragments=['apple', 'cpp', 'objc'],
)
diff --git a/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects_paths.bzl b/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects_paths.bzl
index 0017549..c5e0266 100644
--- a/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects_paths.bzl
+++ b/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects_paths.bzl
@@ -26,6 +26,3 @@
# Re-export providers.
AppleBundleInfo = _AppleBundleInfo
IosExtensionBundleInfo = _IosExtensionBundleInfo
-
-# Export labels to paths.
-TULSI_CURRENT_XCODE_CONFIG = Label('@bazel_tools//tools/osx:current_xcode_config')