Skip to content

Commit 912599c

Browse files
karim-alweheshyKarim Alweheshy
andauthored
Fix for `WARNING: SWIFT_CUSTOM_TOOLCHAIN is deprecated. Use --action_… (#3123)
Fixes warning during the usage of custom toolchain ``` Showing All Messages DEBUG: /private/var/tmp/_bazel_{username}/ed37deb70baf581b96b515b59a8873c2/rules_xcodeproj.noindex/build_output_base/external/rules_swift~/swift/toolchains/xcode_swift_toolchain.bzl:600:14: WARNING: SWIFT_CUSTOM_TOOLCHAIN is deprecated. Use --action_env=TOOLCHAINS=<id> instead. ``` Signed-off-by: Karim Alweheshy <[email protected]> Co-authored-by: Karim Alweheshy <[email protected]>
1 parent 407cbab commit 912599c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xcodeproj/internal/templates/bazel_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ echo "Starting Bazel build"
114114
${build_pre_config_flags:+"${build_pre_config_flags[@]}"} \
115115
--config="$config" \
116116
--color=yes \
117-
${toolchain:+--define=SWIFT_CUSTOM_TOOLCHAIN="$toolchain"} \
117+
${toolchain:+--action_env=TOOLCHAINS="$toolchain"} \
118118
"$output_groups_flag" \
119119
"%generator_label%" \
120120
${labels:+"--build_metadata=PATTERN=${labels[*]}"} \

0 commit comments

Comments
 (0)