diff --git a/test/BUILD b/test/BUILD index fb4afe0d7..70dcb37e7 100644 --- a/test/BUILD +++ b/test/BUILD @@ -32,11 +32,3 @@ bzl_library( "//test/rules:starlark_tests_bzls", ], ) - -# TODO: Remove once https://github.com/bazelbuild/bazel/pull/10945 lands -config_setting( - name = "linux", - constraint_values = [ - "@bazel_tools//platforms:linux", - ], -) diff --git a/test/coverage_settings_tests.bzl b/test/coverage_settings_tests.bzl index 397b8ffb9..b14e58234 100644 --- a/test/coverage_settings_tests.bzl +++ b/test/coverage_settings_tests.bzl @@ -65,13 +65,11 @@ def coverage_settings_test_suite(name = "coverage_settings"): coverage_xcode_prefix_map_test( name = "{}_xcode_prefix_map".format(name), tags = [name], - expected_argv = select({ - "//test:linux": [], - "//conditions:default": [ - "-coverage-prefix-map", - "__BAZEL_XCODE_DEVELOPER_DIR__=DEVELOPER_DIR", - ], - }), + expected_argv = [ + "-coverage-prefix-map", + "__BAZEL_XCODE_DEVELOPER_DIR__=DEVELOPER_DIR", + ], + target_compatible_with = ["@platforms//os:macos"], mnemonic = "SwiftCompile", target_under_test = "@build_bazel_rules_swift//test/fixtures/debug_settings:simple", ) diff --git a/test/debug_settings_tests.bzl b/test/debug_settings_tests.bzl index 380572583..49d5a61d6 100644 --- a/test/debug_settings_tests.bzl +++ b/test/debug_settings_tests.bzl @@ -225,13 +225,11 @@ def debug_settings_test_suite(name = "debug_settings"): xcode_remap_command_line_test( name = "{}_remap_xcode_path".format(name), - expected_argv = select({ - "//test:linux": [], - "//conditions:default": [ - "-debug-prefix-map", - "__BAZEL_XCODE_DEVELOPER_DIR__=DEVELOPER_DIR", - ], - }), + expected_argv = [ + "-debug-prefix-map", + "__BAZEL_XCODE_DEVELOPER_DIR__=DEVELOPER_DIR", + ], + target_compatible_with = ["@platforms//os:macos"], mnemonic = "SwiftCompile", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/debug_settings:simple", diff --git a/test/split_derived_files_tests.bzl b/test/split_derived_files_tests.bzl index 34839ebae..5aa8243a5 100644 --- a/test/split_derived_files_tests.bzl +++ b/test/split_derived_files_tests.bzl @@ -274,12 +274,8 @@ def split_derived_files_test_suite(name = "split_derived_files"): split_swiftmodule_bitcode_test( name = "{}_bitcode_compile".format(name), - expected_argv = select({ - "//test:linux": [], - "//conditions:default": [ - "-embed-bitcode", - ], - }), + expected_argv = ["-embed-bitcode"], + target_compatible_with = ["@platforms//os:macos"], mnemonic = "SwiftCompile", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/debug_settings:simple", @@ -297,12 +293,8 @@ def split_derived_files_test_suite(name = "split_derived_files"): split_swiftmodule_bitcode_markers_test( name = "{}_bitcode_markers_compile".format(name), - expected_argv = select({ - "//test:linux": [], - "//conditions:default": [ - "-embed-bitcode-marker", - ], - }), + expected_argv = ["-embed-bitcode-marker"], + target_compatible_with = ["@platforms//os:macos"], mnemonic = "SwiftCompile", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/debug_settings:simple",