Skip to content

Commit

Permalink
Remove test_additive_cpus_flag (#249)
Browse files Browse the repository at this point in the history
This is really a bazel thing not an apple_support thing
  • Loading branch information
keith authored Aug 21, 2023
1 parent c9f40aa commit fa9fad0
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions test/shell/apple_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,53 +175,6 @@ EOF
|| fail "should build starlark_apple_binary with dSYMs"
}

function test_additive_cpus_flag() {
rm -rf package
mkdir -p package

cat > package/BUILD <<EOF
load("@build_bazel_apple_support//test:starlark_apple_binary.bzl", "starlark_apple_binary")
objc_library(
name = "lib_a",
srcs = ["a.m"],
)
objc_library(
name = "lib_b",
srcs = ["b.m"],
)
starlark_apple_binary(
name = "main_binary",
deps = [":lib_a", ":lib_b"],
platform_type = "ios",
minimum_os_version = "10.0",
)
genrule(
name = "lipo_run",
srcs = [":main_binary"],
outs = ["lipo_out"],
cmd =
"set -e && " +
"lipo -info \$(location :main_binary) > \$(@)",
tags = ["requires-darwin"],
)
EOF
touch package/a.m
cat > package/b.m <<EOF
int main() {
return 0;
}
EOF

bazel build --verbose_failures \
//package:lipo_out \
--noincompatible_enable_cc_toolchain_resolution \
--ios_multi_cpus=sim_arm64 --ios_multi_cpus=x86_64 \
|| fail "should build starlark_apple_binary and obtain info via lipo"

grep "x86_64 arm64" bazel-bin/package/lipo_out \
|| fail "expected output binary to contain 2 architectures"
}

function test_apple_binary_spaces() {
rm -rf package
mkdir -p package
Expand Down

0 comments on commit fa9fad0

Please sign in to comment.