Move windows 2019 RBE builds back to the default pool, and remove now obsolete
windows 1803 toolchains. PiperOrigin-RevId: 297696691 Change-Id: I0b7ffc74afc415fd9c3b996cd29dcba5e7ca68d1
This commit is contained in:
parent
fb9f77525b
commit
e5eebbb5de
29
.bazelrc
29
.bazelrc
@ -59,7 +59,6 @@
|
|||||||
# rbe: General RBE options shared by all flavors.
|
# rbe: General RBE options shared by all flavors.
|
||||||
# rbe_linux: General RBE options used on all linux builds.
|
# rbe_linux: General RBE options used on all linux builds.
|
||||||
# rbe_win: General RBE options used on all windows builds.
|
# rbe_win: General RBE options used on all windows builds.
|
||||||
# rbe_win2019: General RBE options used on all windows server 2019 builds.
|
|
||||||
#
|
#
|
||||||
# rbe_cpu_linux: RBE options to build with only CPU support.
|
# rbe_cpu_linux: RBE options to build with only CPU support.
|
||||||
# rbe_linux_cuda_nvcc: RBE options to build with GPU support using nvcc.
|
# rbe_linux_cuda_nvcc: RBE options to build with GPU support using nvcc.
|
||||||
@ -394,33 +393,19 @@ build:rbe_linux_py3 --python_path="/usr/bin/python3"
|
|||||||
build:rbe_linux_py3 --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu16.04-manylinux2010-py3_config_python"
|
build:rbe_linux_py3 --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu16.04-manylinux2010-py3_config_python"
|
||||||
|
|
||||||
build:rbe_win --config=rbe
|
build:rbe_win --config=rbe
|
||||||
build:rbe_win --crosstool_top="@org_tensorflow//third_party/toolchains/preconfig/win_1803/bazel_121:toolchain"
|
build:rbe_win --crosstool_top="@org_tensorflow//third_party/toolchains/preconfig/win/bazel_211:toolchain"
|
||||||
build:rbe_win --extra_execution_platforms="@org_tensorflow//third_party/toolchains/preconfig/win_1803:rbe_windows_1803"
|
build:rbe_win --extra_toolchains="@org_tensorflow//third_party/toolchains/preconfig/win/bazel_211:cc-toolchain-x64_windows"
|
||||||
build:rbe_win --extra_toolchains="@org_tensorflow//third_party/toolchains/preconfig/win_1803/bazel_121:cc-toolchain-x64_windows"
|
build:rbe_win --host_javabase="@org_tensorflow//third_party/toolchains/preconfig/win:windows_jdk8"
|
||||||
build:rbe_win --host_javabase="@org_tensorflow//third_party/toolchains/preconfig/win_1803:windows_jdk8"
|
build:rbe_win --javabase="@org_tensorflow//third_party/toolchains/preconfig/win:windows_jdk8"
|
||||||
build:rbe_win --host_platform="@org_tensorflow//third_party/toolchains/preconfig/win_1803:rbe_windows_1803"
|
build:rbe_win --extra_execution_platforms="@org_tensorflow//third_party/toolchains/preconfig/win:rbe_windows_ltsc2019"
|
||||||
build:rbe_win --javabase="@org_tensorflow//third_party/toolchains/preconfig/win_1803:windows_jdk8"
|
build:rbe_win --host_platform="@org_tensorflow//third_party/toolchains/preconfig/win:rbe_windows_ltsc2019"
|
||||||
build:rbe_win --platforms="@org_tensorflow//third_party/toolchains/preconfig/win_1803:rbe_windows_1803"
|
build:rbe_win --platforms="@org_tensorflow//third_party/toolchains/preconfig/win:rbe_windows_ltsc2019"
|
||||||
build:rbe_win --shell_executable=C:\\tools\\msys64\\usr\\bin\\bash.exe
|
build:rbe_win --shell_executable=C:\\tools\\msys64\\usr\\bin\\bash.exe
|
||||||
|
|
||||||
# TODO(gunan): Remove once we use MSVC 2019 with latest patches.
|
# TODO(gunan): Remove once we use MSVC 2019 with latest patches.
|
||||||
build:rbe_win --define=override_eigen_strong_inline=true
|
build:rbe_win --define=override_eigen_strong_inline=true
|
||||||
build:rbe_win --jobs=500
|
build:rbe_win --jobs=500
|
||||||
|
|
||||||
build:rbe_win2019 --config=rbe
|
|
||||||
build:rbe_win2019 --crosstool_top="@org_tensorflow//third_party/toolchains/preconfig/win/bazel_211:toolchain"
|
|
||||||
build:rbe_win2019 --extra_toolchains="@org_tensorflow//third_party/toolchains/preconfig/win/bazel_211:cc-toolchain-x64_windows"
|
|
||||||
build:rbe_win2019 --host_javabase="@org_tensorflow//third_party/toolchains/preconfig/win:windows_jdk8"
|
|
||||||
build:rbe_win2019 --javabase="@org_tensorflow//third_party/toolchains/preconfig/win:windows_jdk8"
|
|
||||||
build:rbe_win2019 --extra_execution_platforms="@org_tensorflow//third_party/toolchains/preconfig/win:rbe_windows_ltsc2019"
|
|
||||||
build:rbe_win2019 --host_platform="@org_tensorflow//third_party/toolchains/preconfig/win:rbe_windows_ltsc2019"
|
|
||||||
build:rbe_win2019 --platforms="@org_tensorflow//third_party/toolchains/preconfig/win:rbe_windows_ltsc2019"
|
|
||||||
build:rbe_win2019 --shell_executable=C:\\tools\\msys64\\usr\\bin\\bash.exe
|
|
||||||
|
|
||||||
# TODO(gunan): Remove once we use MSVC 2019 with latest patches.
|
|
||||||
build:rbe_win2019 --define=override_eigen_strong_inline=true
|
|
||||||
build:rbe_win2019 --jobs=100
|
|
||||||
|
|
||||||
build:rbe_win_py37 --config=rbe
|
build:rbe_win_py37 --config=rbe
|
||||||
build:rbe_win_py37 --repo_env=TF_PYTHON_CONFIG_REPO="@windows_py37_config_python"
|
build:rbe_win_py37 --repo_env=TF_PYTHON_CONFIG_REPO="@windows_py37_config_python"
|
||||||
build:rbe_win_py37 --python_path=C:\\Python37\\python.exe
|
build:rbe_win_py37 --python_path=C:\\Python37\\python.exe
|
||||||
|
@ -243,9 +243,6 @@ tensorflow/third_party/toolchains/preconfig/ubuntu16.04/tensorrt6.0/build_defs.b
|
|||||||
tensorflow/third_party/toolchains/preconfig/win/BUILD
|
tensorflow/third_party/toolchains/preconfig/win/BUILD
|
||||||
tensorflow/third_party/toolchains/preconfig/win/bazel_211/BUILD
|
tensorflow/third_party/toolchains/preconfig/win/bazel_211/BUILD
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/BUILD
|
tensorflow/third_party/toolchains/preconfig/win_1803/BUILD
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/bazel_025/BUILD
|
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/bazel_026/BUILD
|
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/bazel_121/BUILD
|
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/py36/BUILD
|
tensorflow/third_party/toolchains/preconfig/win_1803/py36/BUILD
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/py37/BUILD
|
tensorflow/third_party/toolchains/preconfig/win_1803/py37/BUILD
|
||||||
tensorflow/third_party/toolchains/preconfig/win_1803/py38/BUILD
|
tensorflow/third_party/toolchains/preconfig/win_1803/py38/BUILD
|
||||||
|
2
third_party/toolchains/preconfig/win/BUILD
vendored
2
third_party/toolchains/preconfig/win/BUILD
vendored
@ -24,7 +24,7 @@ platform(
|
|||||||
value: "Windows"
|
value: "Windows"
|
||||||
}
|
}
|
||||||
properties:{
|
properties:{
|
||||||
name: "Pool" value: "win2019"
|
name: "Pool" value: "default"
|
||||||
}
|
}
|
||||||
""",
|
""",
|
||||||
)
|
)
|
||||||
|
21
third_party/toolchains/preconfig/win_1803/BUILD
vendored
21
third_party/toolchains/preconfig/win_1803/BUILD
vendored
@ -8,27 +8,6 @@ java_runtime(
|
|||||||
java_home = "C:/openjdk",
|
java_home = "C:/openjdk",
|
||||||
)
|
)
|
||||||
|
|
||||||
platform(
|
|
||||||
name = "rbe_windows_1803",
|
|
||||||
constraint_values = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
remote_execution_properties = """
|
|
||||||
properties:{
|
|
||||||
name: "container-image"
|
|
||||||
value: "docker://gcr.io/tensorflow-testing/tf-win-rbe@sha256:f109576c7c0c8a1783ff22b666e8923b52dbbe7933f69a1c7a7275202c304a12"
|
|
||||||
}
|
|
||||||
properties:{
|
|
||||||
name: "OSFamily"
|
|
||||||
value: "Windows"
|
|
||||||
}
|
|
||||||
properties:{
|
|
||||||
name: "Pool" value: "default"
|
|
||||||
}
|
|
||||||
""",
|
|
||||||
)
|
|
||||||
|
|
||||||
platform(
|
platform(
|
||||||
name = "rbe_windows_1803_gpu",
|
name = "rbe_windows_1803_gpu",
|
||||||
constraint_values = [
|
constraint_values = [
|
||||||
|
@ -1,187 +0,0 @@
|
|||||||
# Copyright 2018 The Bazel Authors. All rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
# This becomes the BUILD file for @local_config_cc// under Windows.
|
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load(":cc_toolchain_config.bzl", "cc_toolchain_config")
|
|
||||||
|
|
||||||
cc_library(
|
|
||||||
name = "malloc",
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "empty",
|
|
||||||
srcs = [],
|
|
||||||
)
|
|
||||||
|
|
||||||
# Hardcoded toolchain, legacy behaviour.
|
|
||||||
cc_toolchain_suite(
|
|
||||||
name = "toolchain",
|
|
||||||
toolchains = {
|
|
||||||
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
|
|
||||||
"x64_windows|msvc-cl": ":cc-compiler-x64_windows",
|
|
||||||
"x64_windows|msys-gcc": ":cc-compiler-x64_windows_msys",
|
|
||||||
"x64_windows|mingw-gcc": ":cc-compiler-x64_windows_mingw",
|
|
||||||
"x64_windows_msys": ":cc-compiler-x64_windows_msys",
|
|
||||||
"x64_windows": ":cc-compiler-x64_windows",
|
|
||||||
"armeabi-v7a": ":cc-compiler-armeabi-v7a",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows_msys",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":msys_x64",
|
|
||||||
toolchain_identifier = "msys_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msys_x64",
|
|
||||||
compiler = "msys-gcc",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows_msys",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
"@bazel_tools//tools/cpp:msys",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows_msys",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows_mingw",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 0,
|
|
||||||
toolchain_config = ":msys_x64_mingw",
|
|
||||||
toolchain_identifier = "msys_x64_mingw",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msys_x64_mingw",
|
|
||||||
compiler = "mingw-gcc",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows_mingw",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
"@bazel_tools//tools/cpp:mingw",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows_mingw",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":msvc_x64",
|
|
||||||
toolchain_identifier = "msvc_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msvc_x64",
|
|
||||||
compiler = "msvc-cl",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-armeabi-v7a",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":stub_armeabi-v7a",
|
|
||||||
toolchain_identifier = "stub_armeabi-v7a",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "stub_armeabi-v7a",
|
|
||||||
compiler = "compiler",
|
|
||||||
cpu = "armeabi-v7a",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-armeabi-v7a",
|
|
||||||
exec_compatible_with = [
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:arm",
|
|
||||||
"@bazel_tools//platforms:android",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-armeabi-v7a",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "link_dynamic_library",
|
|
||||||
srcs = ["link_dynamic_library.sh"],
|
|
||||||
)
|
|
File diff suppressed because it is too large
Load Diff
@ -1,23 +0,0 @@
|
|||||||
# pylint: disable=g-bad-file-header
|
|
||||||
# Copyright 2017 The Bazel Authors. All rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
"""Skylark rule that stubs a toolchain."""
|
|
||||||
|
|
||||||
def _dummy_toolchain_impl(ctx):
|
|
||||||
ctx = ctx # unused argument
|
|
||||||
toolchain = platform_common.ToolchainInfo()
|
|
||||||
return [toolchain]
|
|
||||||
|
|
||||||
dummy_toolchain = rule(_dummy_toolchain_impl, attrs = {})
|
|
@ -1,187 +0,0 @@
|
|||||||
# Copyright 2018 The Bazel Authors. All rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
# This becomes the BUILD file for @local_config_cc// under Windows.
|
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load(":cc_toolchain_config.bzl", "cc_toolchain_config")
|
|
||||||
|
|
||||||
cc_library(
|
|
||||||
name = "malloc",
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "empty",
|
|
||||||
srcs = [],
|
|
||||||
)
|
|
||||||
|
|
||||||
# Hardcoded toolchain, legacy behaviour.
|
|
||||||
cc_toolchain_suite(
|
|
||||||
name = "toolchain",
|
|
||||||
toolchains = {
|
|
||||||
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
|
|
||||||
"x64_windows|msvc-cl": ":cc-compiler-x64_windows",
|
|
||||||
"x64_windows|msys-gcc": ":cc-compiler-x64_windows_msys",
|
|
||||||
"x64_windows|mingw-gcc": ":cc-compiler-x64_windows_mingw",
|
|
||||||
"x64_windows_msys": ":cc-compiler-x64_windows_msys",
|
|
||||||
"x64_windows": ":cc-compiler-x64_windows",
|
|
||||||
"armeabi-v7a": ":cc-compiler-armeabi-v7a",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows_msys",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":msys_x64",
|
|
||||||
toolchain_identifier = "msys_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msys_x64",
|
|
||||||
compiler = "msys-gcc",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows_msys",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
"@bazel_tools//tools/cpp:msys",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows_msys",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows_mingw",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 0,
|
|
||||||
toolchain_config = ":msys_x64_mingw",
|
|
||||||
toolchain_identifier = "msys_x64_mingw",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msys_x64_mingw",
|
|
||||||
compiler = "mingw-gcc",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows_mingw",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
"@bazel_tools//tools/cpp:mingw",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows_mingw",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":msvc_x64",
|
|
||||||
toolchain_identifier = "msvc_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msvc_x64",
|
|
||||||
compiler = "msvc-cl",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:x86_64",
|
|
||||||
"@bazel_tools//platforms:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-armeabi-v7a",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":stub_armeabi-v7a",
|
|
||||||
toolchain_identifier = "stub_armeabi-v7a",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "stub_armeabi-v7a",
|
|
||||||
compiler = "compiler",
|
|
||||||
cpu = "armeabi-v7a",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-armeabi-v7a",
|
|
||||||
exec_compatible_with = [
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@bazel_tools//platforms:arm",
|
|
||||||
"@bazel_tools//platforms:android",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-armeabi-v7a",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "link_dynamic_library",
|
|
||||||
srcs = ["link_dynamic_library.sh"],
|
|
||||||
)
|
|
File diff suppressed because it is too large
Load Diff
@ -1,23 +0,0 @@
|
|||||||
# pylint: disable=g-bad-file-header
|
|
||||||
# Copyright 2017 The Bazel Authors. All rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
"""Skylark rule that stubs a toolchain."""
|
|
||||||
|
|
||||||
def _dummy_toolchain_impl(ctx):
|
|
||||||
ctx = ctx # unused argument
|
|
||||||
toolchain = platform_common.ToolchainInfo()
|
|
||||||
return [toolchain]
|
|
||||||
|
|
||||||
dummy_toolchain = rule(_dummy_toolchain_impl, attrs = {})
|
|
@ -1,356 +0,0 @@
|
|||||||
# Copyright 2018 The Bazel Authors. All rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
# This becomes the BUILD file for @local_config_cc// under Windows.
|
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
|
|
||||||
load(":windows_cc_toolchain_config.bzl", "cc_toolchain_config")
|
|
||||||
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")
|
|
||||||
|
|
||||||
cc_library(
|
|
||||||
name = "malloc",
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "empty",
|
|
||||||
srcs = [],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "mingw_compiler_files",
|
|
||||||
srcs = [":builtin_include_directory_paths_mingw"],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "clangcl_compiler_files",
|
|
||||||
srcs = [":builtin_include_directory_paths_clangcl"],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "msvc_compiler_files",
|
|
||||||
srcs = [":builtin_include_directory_paths_msvc"],
|
|
||||||
)
|
|
||||||
|
|
||||||
# Hardcoded toolchain, legacy behaviour.
|
|
||||||
cc_toolchain_suite(
|
|
||||||
name = "toolchain",
|
|
||||||
toolchains = {
|
|
||||||
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
|
|
||||||
"x64_windows|msvc-cl": ":cc-compiler-x64_windows",
|
|
||||||
"x64_windows|msys-gcc": ":cc-compiler-x64_windows_msys",
|
|
||||||
"x64_windows|mingw-gcc": ":cc-compiler-x64_windows_mingw",
|
|
||||||
"x64_windows|clang-cl": ":cc-compiler-x64_windows-clang-cl",
|
|
||||||
"x64_windows_msys": ":cc-compiler-x64_windows_msys",
|
|
||||||
"x64_windows": ":cc-compiler-x64_windows",
|
|
||||||
"armeabi-v7a": ":cc-compiler-armeabi-v7a",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows_msys",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":mingw_compiler_files",
|
|
||||||
compiler_files = ":mingw_compiler_files",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":msys_x64",
|
|
||||||
toolchain_identifier = "msys_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msys_x64",
|
|
||||||
abi_libc_version = "local",
|
|
||||||
abi_version = "local",
|
|
||||||
compiler = "msys-gcc",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
cxx_builtin_include_directories = [
|
|
||||||
"c:/tools/msys64/usr/",
|
|
||||||
],
|
|
||||||
dbg_mode_debug_flag = "/DEBUG:FULL",
|
|
||||||
fastbuild_mode_debug_flag = "/DEBUG:FASTLINK",
|
|
||||||
host_system_name = "local",
|
|
||||||
target_libc = "msys",
|
|
||||||
target_system_name = "local",
|
|
||||||
tool_bin_path = "c:/tools/msys64/usr/bin",
|
|
||||||
tool_paths = {
|
|
||||||
"ar": "c:/tools/msys64/usr/bin/ar",
|
|
||||||
"compat-ld": "c:/tools/msys64/usr/bin/compat-ld",
|
|
||||||
"cpp": "c:/tools/msys64/usr/bin/cpp",
|
|
||||||
"dwp": "c:/tools/msys64/usr/bin/dwp",
|
|
||||||
"gcc": "c:/tools/msys64/usr/bin/gcc",
|
|
||||||
"gcov": "c:/tools/msys64/usr/bin/gcov",
|
|
||||||
"ld": "c:/tools/msys64/usr/bin/ld",
|
|
||||||
"nm": "c:/tools/msys64/usr/bin/nm",
|
|
||||||
"objcopy": "c:/tools/msys64/usr/bin/objcopy",
|
|
||||||
"objdump": "c:/tools/msys64/usr/bin/objdump",
|
|
||||||
"strip": "c:/tools/msys64/usr/bin/strip",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows_msys",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
"@bazel_tools//tools/cpp:msys",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows_msys",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows_mingw",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":mingw_compiler_files",
|
|
||||||
compiler_files = ":mingw_compiler_files",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 0,
|
|
||||||
toolchain_config = ":msys_x64_mingw",
|
|
||||||
toolchain_identifier = "msys_x64_mingw",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msys_x64_mingw",
|
|
||||||
abi_libc_version = "local",
|
|
||||||
abi_version = "local",
|
|
||||||
compiler = "mingw-gcc",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
cxx_builtin_include_directories = [
|
|
||||||
"c:/tools/msys64/mingw64/",
|
|
||||||
],
|
|
||||||
dbg_mode_debug_flag = "/DEBUG:FULL",
|
|
||||||
fastbuild_mode_debug_flag = "/DEBUG:FASTLINK",
|
|
||||||
host_system_name = "local",
|
|
||||||
target_libc = "mingw",
|
|
||||||
target_system_name = "local",
|
|
||||||
tool_bin_path = "c:/tools/msys64/mingw64/bin",
|
|
||||||
tool_paths = {
|
|
||||||
"ar": "c:/tools/msys64/mingw64/bin/ar",
|
|
||||||
"compat-ld": "c:/tools/msys64/mingw64/bin/compat-ld",
|
|
||||||
"cpp": "c:/tools/msys64/mingw64/bin/cpp",
|
|
||||||
"dwp": "c:/tools/msys64/mingw64/bin/dwp",
|
|
||||||
"gcc": "c:/tools/msys64/mingw64/bin/gcc",
|
|
||||||
"gcov": "c:/tools/msys64/mingw64/bin/gcov",
|
|
||||||
"ld": "c:/tools/msys64/mingw64/bin/ld",
|
|
||||||
"nm": "c:/tools/msys64/mingw64/bin/nm",
|
|
||||||
"objcopy": "c:/tools/msys64/mingw64/bin/objcopy",
|
|
||||||
"objdump": "c:/tools/msys64/mingw64/bin/objdump",
|
|
||||||
"strip": "c:/tools/msys64/mingw64/bin/strip",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows_mingw",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
"@bazel_tools//tools/cpp:mingw",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows_mingw",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":msvc_compiler_files",
|
|
||||||
compiler_files = ":msvc_compiler_files",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":msvc_x64",
|
|
||||||
toolchain_identifier = "msvc_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "msvc_x64",
|
|
||||||
abi_libc_version = "local",
|
|
||||||
abi_version = "local",
|
|
||||||
compiler = "msvc-cl",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
cxx_builtin_include_directories = [
|
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.25.28508\\include",
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um",
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\ucrt",
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\shared",
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\um",
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\winrt",
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\cppwinrt",
|
|
||||||
],
|
|
||||||
dbg_mode_debug_flag = "/DEBUG:FULL",
|
|
||||||
default_link_flags = ["/MACHINE:X64"],
|
|
||||||
fastbuild_mode_debug_flag = "/DEBUG:FASTLINK",
|
|
||||||
host_system_name = "local",
|
|
||||||
msvc_cl_path = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/cl.exe",
|
|
||||||
msvc_env_include = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.25.28508\\include;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\um;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\cppwinrt",
|
|
||||||
msvc_env_lib = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.25.28508\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.17763.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.17763.0\\um\\x64;",
|
|
||||||
msvc_env_path = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.25.28508\\bin\\HostX64\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.8 Tools\\x64\\;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.17763.0\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\\\MSBuild\\Current\\Bin;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\Common7\\Tools\\;;C:\\Windows\\system32",
|
|
||||||
msvc_env_tmp = "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp",
|
|
||||||
msvc_lib_path = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/lib.exe",
|
|
||||||
msvc_link_path = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/link.exe",
|
|
||||||
msvc_ml_path = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/ml64.exe",
|
|
||||||
target_libc = "msvcrt",
|
|
||||||
target_system_name = "local",
|
|
||||||
tool_paths = {
|
|
||||||
"ar": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/lib.exe",
|
|
||||||
"ml": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/ml64.exe",
|
|
||||||
"cpp": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/cl.exe",
|
|
||||||
"gcc": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/cl.exe",
|
|
||||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"ld": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.25.28508/bin/HostX64/x64/link.exe",
|
|
||||||
"nm": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"objcopy": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"objdump": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"strip": "wrapper/bin/msvc_nop.bat",
|
|
||||||
},
|
|
||||||
toolchain_identifier = "msvc_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-x64_windows-clang-cl",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":clangcl_compiler_files",
|
|
||||||
compiler_files = ":clangcl_compiler_files",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":clang_cl_x64",
|
|
||||||
toolchain_identifier = "clang_cl_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain_config(
|
|
||||||
name = "clang_cl_x64",
|
|
||||||
abi_libc_version = "local",
|
|
||||||
abi_version = "local",
|
|
||||||
compiler = "clang-cl",
|
|
||||||
cpu = "x64_windows",
|
|
||||||
cxx_builtin_include_directories = [],
|
|
||||||
dbg_mode_debug_flag = "/DEBUG",
|
|
||||||
default_link_flags = [
|
|
||||||
"/MACHINE:X64",
|
|
||||||
"/DEFAULTLIB:clang_rt.builtins-x86_64.lib",
|
|
||||||
],
|
|
||||||
fastbuild_mode_debug_flag = "/DEBUG",
|
|
||||||
host_system_name = "local",
|
|
||||||
msvc_cl_path = "clang_installation_error.bat",
|
|
||||||
msvc_env_include = "clang_cl_not_found",
|
|
||||||
msvc_env_lib = "clang_cl_not_found",
|
|
||||||
msvc_env_path = "clang_cl_not_found",
|
|
||||||
msvc_env_tmp = "clang_cl_not_found",
|
|
||||||
msvc_lib_path = "clang_installation_error.bat",
|
|
||||||
msvc_link_path = "clang_installation_error.bat",
|
|
||||||
msvc_ml_path = "clang_installation_error.bat",
|
|
||||||
target_libc = "msvcrt",
|
|
||||||
target_system_name = "local",
|
|
||||||
tool_paths = {
|
|
||||||
"ar": "clang_installation_error.bat",
|
|
||||||
"ml": "clang_installation_error.bat",
|
|
||||||
"cpp": "clang_installation_error.bat",
|
|
||||||
"gcc": "clang_installation_error.bat",
|
|
||||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"ld": "clang_installation_error.bat",
|
|
||||||
"nm": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"objcopy": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"objdump": "wrapper/bin/msvc_nop.bat",
|
|
||||||
"strip": "wrapper/bin/msvc_nop.bat",
|
|
||||||
},
|
|
||||||
toolchain_identifier = "clang_cl_x64",
|
|
||||||
)
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-x64_windows-clang-cl",
|
|
||||||
exec_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
"@bazel_tools//tools/cpp:clang-cl",
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@platforms//cpu:x86_64",
|
|
||||||
"@platforms//os:windows",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-x64_windows-clang-cl",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
cc_toolchain(
|
|
||||||
name = "cc-compiler-armeabi-v7a",
|
|
||||||
all_files = ":empty",
|
|
||||||
ar_files = ":empty",
|
|
||||||
as_files = ":empty",
|
|
||||||
compiler_files = ":empty",
|
|
||||||
dwp_files = ":empty",
|
|
||||||
linker_files = ":empty",
|
|
||||||
objcopy_files = ":empty",
|
|
||||||
strip_files = ":empty",
|
|
||||||
supports_param_files = 1,
|
|
||||||
toolchain_config = ":stub_armeabi-v7a",
|
|
||||||
toolchain_identifier = "stub_armeabi-v7a",
|
|
||||||
)
|
|
||||||
|
|
||||||
armeabi_cc_toolchain_config(name = "stub_armeabi-v7a")
|
|
||||||
|
|
||||||
toolchain(
|
|
||||||
name = "cc-toolchain-armeabi-v7a",
|
|
||||||
exec_compatible_with = [
|
|
||||||
],
|
|
||||||
target_compatible_with = [
|
|
||||||
"@platforms//cpu:arm",
|
|
||||||
"@platforms//os:android",
|
|
||||||
],
|
|
||||||
toolchain = ":cc-compiler-armeabi-v7a",
|
|
||||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "link_dynamic_library",
|
|
||||||
srcs = ["link_dynamic_library.sh"],
|
|
||||||
)
|
|
@ -1,82 +0,0 @@
|
|||||||
# Copyright 2019 The Bazel Authors. All rights reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
"""A Starlark cc_toolchain configuration rule"""
|
|
||||||
|
|
||||||
load(
|
|
||||||
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
|
|
||||||
"feature",
|
|
||||||
"tool_path",
|
|
||||||
)
|
|
||||||
|
|
||||||
def _impl(ctx):
|
|
||||||
toolchain_identifier = "stub_armeabi-v7a"
|
|
||||||
host_system_name = "armeabi-v7a"
|
|
||||||
target_system_name = "armeabi-v7a"
|
|
||||||
target_cpu = "armeabi-v7a"
|
|
||||||
target_libc = "armeabi-v7a"
|
|
||||||
compiler = "compiler"
|
|
||||||
abi_version = "armeabi-v7a"
|
|
||||||
abi_libc_version = "armeabi-v7a"
|
|
||||||
cc_target_os = None
|
|
||||||
builtin_sysroot = None
|
|
||||||
action_configs = []
|
|
||||||
|
|
||||||
supports_pic_feature = feature(name = "supports_pic", enabled = True)
|
|
||||||
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
|
|
||||||
features = [supports_dynamic_linker_feature, supports_pic_feature]
|
|
||||||
|
|
||||||
cxx_builtin_include_directories = []
|
|
||||||
artifact_name_patterns = []
|
|
||||||
make_variables = []
|
|
||||||
|
|
||||||
tool_paths = [
|
|
||||||
tool_path(name = "ar", path = "/bin/false"),
|
|
||||||
tool_path(name = "compat-ld", path = "/bin/false"),
|
|
||||||
tool_path(name = "cpp", path = "/bin/false"),
|
|
||||||
tool_path(name = "dwp", path = "/bin/false"),
|
|
||||||
tool_path(name = "gcc", path = "/bin/false"),
|
|
||||||
tool_path(name = "gcov", path = "/bin/false"),
|
|
||||||
tool_path(name = "ld", path = "/bin/false"),
|
|
||||||
tool_path(name = "nm", path = "/bin/false"),
|
|
||||||
tool_path(name = "objcopy", path = "/bin/false"),
|
|
||||||
tool_path(name = "objdump", path = "/bin/false"),
|
|
||||||
tool_path(name = "strip", path = "/bin/false"),
|
|
||||||
]
|
|
||||||
|
|
||||||
return cc_common.create_cc_toolchain_config_info(
|
|
||||||
ctx = ctx,
|
|
||||||
features = features,
|
|
||||||
action_configs = action_configs,
|
|
||||||
artifact_name_patterns = artifact_name_patterns,
|
|
||||||
cxx_builtin_include_directories = cxx_builtin_include_directories,
|
|
||||||
toolchain_identifier = toolchain_identifier,
|
|
||||||
host_system_name = host_system_name,
|
|
||||||
target_system_name = target_system_name,
|
|
||||||
target_cpu = target_cpu,
|
|
||||||
target_libc = target_libc,
|
|
||||||
compiler = compiler,
|
|
||||||
abi_version = abi_version,
|
|
||||||
abi_libc_version = abi_libc_version,
|
|
||||||
tool_paths = tool_paths,
|
|
||||||
make_variables = make_variables,
|
|
||||||
builtin_sysroot = builtin_sysroot,
|
|
||||||
cc_target_os = cc_target_os,
|
|
||||||
)
|
|
||||||
|
|
||||||
armeabi_cc_toolchain_config = rule(
|
|
||||||
implementation = _impl,
|
|
||||||
attrs = {},
|
|
||||||
provides = [CcToolchainConfigInfo],
|
|
||||||
)
|
|
@ -1,13 +0,0 @@
|
|||||||
This file is generated by cc_configure and contains builtin include directories
|
|
||||||
that msvc reported. This file is a dependency of every compilation action and
|
|
||||||
changes to it will be reflected in the action cache key. When some of these
|
|
||||||
paths change, Bazel will make sure to rerun the action, even though none of
|
|
||||||
declared action inputs or the action commandline changes.
|
|
||||||
|
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\VC\\Tools\\MSVC\\14.25.28508\\include"
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um"
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\ucrt"
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\shared"
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\um"
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\winrt"
|
|
||||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.17763.0\\cppwinrt"
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user