Skip to content

Commit

Permalink
When overriding the platform repo, define the host platform.
Browse files Browse the repository at this point in the history
Work towards platform-based flags: bazelbuild#19409.

PiperOrigin-RevId: 621567588
Change-Id: I4a833e1458d7c4f6f78ce2069b3104acfddd211f
  • Loading branch information
katre authored and Kila2 committed May 13, 2024
1 parent 39c016d commit 9c60278
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/shell/bazel/platforms_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ EOF
toolchain_type(name = 'yolo')
EOF
mkdir override/host
touch override/host/BUILD
cat > override/host/BUILD <<EOF
# Have to define the host platform.
platform(
name = 'host',
visibility = ['//visibility:public'],
)
EOF
cat > override/host/extension.bzl <<EOF
def host_platform_repo(**kwargs):
pass
Expand Down

0 comments on commit 9c60278

Please sign in to comment.