From 49ecd1f37ae2abcfe5a68951fe6b118345509907 Mon Sep 17 00:00:00 2001 From: kaipi Date: Tue, 13 Feb 2018 11:03:28 -0800 Subject: Fix CROSSTOOL.tpl to correctly target watchos_i386. PiperOrigin-RevId: 185556666 --- src/test/shell/bazel/apple/bazel_apple_test.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/test/shell') diff --git a/src/test/shell/bazel/apple/bazel_apple_test.sh b/src/test/shell/bazel/apple/bazel_apple_test.sh index d90d6f0b13..db3063e707 100755 --- a/src/test/shell/bazel/apple/bazel_apple_test.sh +++ b/src/test/shell/bazel/apple/bazel_apple_test.sh @@ -250,7 +250,16 @@ EOF || fail "should build watch binary" cat bazel-genfiles/package/lipo_out | grep "armv7k" \ - || fail "expected output binary to be for armv7k architecture" + || fail "expected output binary to be for armv7k architecture" + + bazel build --verbose_failures //package:lipo_out \ + --apple_crosstool_transition \ + --watchos_cpus=i386 \ + --xcode_version=$XCODE_VERSION \ + || fail "should build watch binary" + + cat bazel-genfiles/package/lipo_out | grep "i386" \ + || fail "expected output binary to be for i386 architecture" } function test_xcode_config_select() { -- cgit v1.2.3