|
| 1 | +diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl |
| 2 | +index f28f12927db..cc1b1ea29b9 100644 |
| 3 | +--- a/tensorflow/tensorflow.bzl |
| 4 | ++++ b/tensorflow/tensorflow.bzl |
| 5 | +@@ -3027,9 +3027,7 @@ _local_genrule_internal = rule( |
| 6 | + # Wrap the rule in a macro so we can pass in exec_compatible_with. |
| 7 | + def _local_genrule(**kwargs): |
| 8 | + _local_genrule_internal( |
| 9 | +- exec_compatible_with = [ |
| 10 | +- "@local_execution_config_platform//:platform_constraint", |
| 11 | +- ], |
| 12 | ++ exec_compatible_with = [], |
| 13 | + **kwargs |
| 14 | + ) |
| 15 | + |
| 16 | +diff --git a/tensorflow/tensorflow.default.bzl b/tensorflow/tensorflow.default.bzl |
| 17 | +index fc6793e5d74..1585754a602 100644 |
| 18 | +--- a/tensorflow/tensorflow.default.bzl |
| 19 | ++++ b/tensorflow/tensorflow.default.bzl |
| 20 | +@@ -1,15 +1,5 @@ |
| 21 | + """Default (OSS) build versions of TensorFlow general-purpose build extensions.""" |
| 22 | + |
| 23 | +-load( |
| 24 | +- "@local_xla//third_party/py/rules_pywrap:pywrap.default.bzl", |
| 25 | +- _pywrap_aware_cc_import = "pywrap_aware_cc_import", |
| 26 | +- _pywrap_aware_filegroup = "pywrap_aware_filegroup", |
| 27 | +- _pywrap_aware_genrule = "pywrap_aware_genrule", |
| 28 | +- _pywrap_binaries = "pywrap_binaries", |
| 29 | +- _pywrap_common_library = "pywrap_common_library", |
| 30 | +- _pywrap_library = "pywrap_library", |
| 31 | +- _stripped_cc_info = "stripped_cc_info", |
| 32 | +-) |
| 33 | + load( |
| 34 | + "//tensorflow:tensorflow.bzl", |
| 35 | + _ADDITIONAL_API_INDEXABLE_SETTINGS = "ADDITIONAL_API_INDEXABLE_SETTINGS", |
| 36 | +@@ -107,10 +97,15 @@ tf_disable_ptxas_warning_flags = _tf_disable_ptxas_warning_flags |
| 37 | + replace_with_portable_tf_lib_when_required = _replace_with_portable_tf_lib_when_required |
| 38 | + tf_python_framework_friends = _tf_python_framework_friends |
| 39 | + pywrap_aware_tf_cc_shared_object = _pywrap_aware_tf_cc_shared_object |
| 40 | +-pywrap_aware_filegroup = _pywrap_aware_filegroup |
| 41 | +-pywrap_aware_genrule = _pywrap_aware_genrule |
| 42 | +-pywrap_aware_cc_import = _pywrap_aware_cc_import |
| 43 | +-pywrap_library = _pywrap_library |
| 44 | +-pywrap_common_library = _pywrap_common_library |
| 45 | +-stripped_cc_info = _stripped_cc_info |
| 46 | +-pywrap_binaries = _pywrap_binaries |
| 47 | ++ |
| 48 | ++# Stub out pywrap symbols that require @python_version_repo |
| 49 | ++def _not_implemented(*args, **kwargs): |
| 50 | ++ fail("pywrap rules are disabled") |
| 51 | ++ |
| 52 | ++pywrap_aware_filegroup = _not_implemented |
| 53 | ++pywrap_aware_genrule = _not_implemented |
| 54 | ++pywrap_aware_cc_import = _not_implemented |
| 55 | ++pywrap_library = _not_implemented |
| 56 | ++pywrap_common_library = _not_implemented |
| 57 | ++stripped_cc_info = _not_implemented |
| 58 | ++pywrap_binaries = _not_implemented |
| 59 | +diff --git a/tensorflow/tf_version.default.bzl b/tensorflow/tf_version.default.bzl |
| 60 | +index 6b2374cc96c..95cbf574544 100644 |
| 61 | +--- a/tensorflow/tf_version.default.bzl |
| 62 | ++++ b/tensorflow/tf_version.default.bzl |
| 63 | +@@ -1,10 +1,5 @@ |
| 64 | + """Default (OSS) TensorFlow wheel version suffix data.""" |
| 65 | + |
| 66 | +-load( |
| 67 | +- "@tf_wheel_version_suffix//:wheel_version_suffix.bzl", |
| 68 | +- "SEMANTIC_WHEEL_VERSION_SUFFIX", |
| 69 | +- "WHEEL_VERSION_SUFFIX", |
| 70 | +-) |
| 71 | +- |
| 72 | +-VERSION_SUFFIX = WHEEL_VERSION_SUFFIX |
| 73 | +-SEMANTIC_VERSION_SUFFIX = SEMANTIC_WHEEL_VERSION_SUFFIX |
| 74 | ++# Stub out wheel version suffix (not needed for TF Lite builds) |
| 75 | ++VERSION_SUFFIX = "" |
| 76 | ++SEMANTIC_VERSION_SUFFIX = "" |
| 77 | +diff --git a/tensorflow/workspace1.bzl b/tensorflow/workspace1.bzl |
| 78 | +index 399ff8f7579..af35b6d1972 100644 |
| 79 | +--- a/tensorflow/workspace1.bzl |
| 80 | ++++ b/tensorflow/workspace1.bzl |
| 81 | +@@ -15,8 +15,8 @@ def workspace(with_rules_cc = True): |
| 82 | + Args: |
| 83 | + with_rules_cc: Unused, to be removed soon. |
| 84 | + """ |
| 85 | +- llvm_setup(name = "llvm-project") |
| 86 | +- native.register_toolchains("@local_config_python//:py_toolchain") |
| 87 | ++ # llvm_setup(name = "llvm-project") |
| 88 | ++ # native.register_toolchains("@local_config_python//:py_toolchain") |
| 89 | + rules_pkg_dependencies() |
| 90 | + |
| 91 | + closure_repositories() |
| 92 | +diff --git a/tensorflow/workspace2.bzl b/tensorflow/workspace2.bzl |
| 93 | +index 9e49ab40b25..fc13a5172d7 100644 |
| 94 | +--- a/tensorflow/workspace2.bzl |
| 95 | ++++ b/tensorflow/workspace2.bzl |
| 96 | +@@ -105,11 +105,11 @@ def _initialize_third_party(): |
| 97 | + |
| 98 | + # Toolchains & platforms required by Tensorflow to build. |
| 99 | + def _tf_toolchains(): |
| 100 | +- native.register_execution_platforms("@local_execution_config_platform//:platform") |
| 101 | +- native.register_toolchains("@local_execution_config_python//:py_toolchain") |
| 102 | ++ # native.register_execution_platforms("@local_execution_config_platform//:platform") |
| 103 | ++ # native.register_toolchains("@local_execution_config_python//:py_toolchain") |
| 104 | + |
| 105 | + # Loads all external repos to configure RBE builds. |
| 106 | +- initialize_rbe_configs() |
| 107 | ++ # initialize_rbe_configs() |
| 108 | + |
| 109 | + # Note that we check the minimum bazel version in WORKSPACE. |
| 110 | + clang6_configure(name = "local_config_clang6") |
0 commit comments