mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Update scripts/configs for Windows nightly/release builds.
`set -u` (does not allow unbound variables) has been removed from all scripts. This is due to Docker on Windows treating variables in an env file, set to an empty value (`MY_VAR=`), as unbound variables. Consequently, these variables, even though they are "set", do not make it into the Docker container at all, and various checks for those variables fail outright. PiperOrigin-RevId: 713717958
This commit is contained in:
committed by
TensorFlower Gardener
parent
107e28c76e
commit
fa3b3c1a0d
28
.bazelrc
28
.bazelrc
@@ -451,12 +451,13 @@ build:avx_linux --copt=-mavx
|
||||
build:avx_linux --host_copt=-mavx
|
||||
build:avx_win --copt=/arch:AVX
|
||||
|
||||
# TODO(belitskiy): Remove once Win2019 is gone.
|
||||
# Use Clang-cl compiler on Windows
|
||||
build:win_clang --copt=/clang:-Weverything
|
||||
build:win_clang --host_copt=/clang:-Weverything
|
||||
build:win_clang --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
|
||||
build:win_clang --extra_execution_platforms=//tensorflow/tools/toolchains/win:x64_windows-clang-cl
|
||||
build:win_clang --host_platform=//tensorflow/tools/toolchains/win:x64_windows-clang-cl
|
||||
build:win_clang --copt=/clang:-Weverything
|
||||
build:win_clang --host_copt=/clang:-Weverything
|
||||
build:win_clang --compiler=clang-cl
|
||||
build:win_clang --linkopt=/FORCE:MULTIPLE
|
||||
build:win_clang --host_linkopt=/FORCE:MULTIPLE
|
||||
@@ -464,6 +465,23 @@ test:win_clang --linkopt=/FORCE:MULTIPLE
|
||||
test:win_clang --host_linkopt=/FORCE:MULTIPLE
|
||||
test:win_clang --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
|
||||
|
||||
# build:windows_x86_cpu --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
|
||||
# build:windows_x86_cpu --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
# build:windows_x86_cpu --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --crosstool_top="//tensorflow/tools/toolchains/win2022/20241118:toolchain"
|
||||
build:windows_x86_cpu --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
|
||||
build:windows_x86_cpu --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --copt=/clang:-Weverything
|
||||
build:windows_x86_cpu --host_copt=/clang:-Weverything
|
||||
build:windows_x86_cpu --compiler=clang-cl
|
||||
build:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
|
||||
build:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
|
||||
|
||||
# Options to build TensorFlow 1.x or 2.x.
|
||||
# TODO(kanglan): Change v2's define to default behavior
|
||||
build:v2 --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
|
||||
@@ -734,6 +752,7 @@ build:tf_public_macos_cache_push --config=tf_public_macos_cache --remote_upload_
|
||||
# LIBTENSORFLOW TESTS are for building Libtensorflow archives. These are CUDA/CPU-agnostic.
|
||||
test:linux_libtensorflow_test --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow_test //tensorflow/tools/lib_package:libtensorflow_java_test
|
||||
build:linux_libtensorflow_build --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow.tar.gz //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz //tensorflow/java:libtensorflow.jar //tensorflow/java:libtensorflow-src.jar //tensorflow/tools/lib_package:libtensorflow_proto.zip
|
||||
build:windows_libtensorflow_build --config=cuda_wheel --config=windows_x86_cpu -- //:LICENSE //tensorflow:tensorflow.dll //tensorflow:tensorflow_dll_import_lib //tensorflow/tools/lib_package:clicenses_generate //tensorflow/java:tensorflow_jni.dll //tensorflow/tools/lib_package:jnilicenses_generate
|
||||
|
||||
# PYTHON TESTS run a suite of Python tests intended for verifying that the Python wheel
|
||||
# will work properly. These are usually run Nightly or upon Release.
|
||||
@@ -762,6 +781,11 @@ test:macos_x86_wheel_test_filters --test_tag_filters=-no_oss,-tf_tosa,-oss_exclu
|
||||
test:macos_x86_wheel_test_filters --build_tag_filters=-no_oss,-tf_tosa,-oss_excluded,-oss_serial,-no_oss_py38,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test
|
||||
test:macos_x86_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
|
||||
test:macos_x86_wheel_test --@local_tsl//third_party/py:wheel_dependency=true --config=macos_x86_wheel_test_filters -- //tensorflow/... //tensorflow/tools/pip_package:prebuilt_wheel_import_api_packages_test_cpu -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
|
||||
# WINDOWS X86 WHEEL
|
||||
test:windows_x86_cpu_wheel_test_filters --test_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-gpu,-tpu,-benchmark-test
|
||||
test:windows_x86_cpu_wheel_test_filters --build_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-benchmark-test
|
||||
test:windows_x86_cpu_wheel_test_filters --test_lang_filters=cc,py --test_size_filters=small,medium --test_timeout="300,450,1200,3600"
|
||||
test:windows_x86_cpu_wheel_test --build_tests_only --config=windows_x86_cpu_pycpp_test_filters -- //tensorflow/... -//tensorflow/java/... -//tensorflow/lite/... -//tensorflow/compiler/...
|
||||
|
||||
# PYCPP TESTS run a suite of Python and C++ tests to verify general correctness over
|
||||
# the whole TF code base. These are usually run continuously or upon presubmit.
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# export TF_ANY_EXTRA_ENV=ci/official/envs/local_rbe
|
||||
# ./any.sh
|
||||
# ...
|
||||
set -euxo pipefail
|
||||
set -exo pipefail
|
||||
cd "$(dirname "$0")/../../" # tensorflow/
|
||||
# Any request that includes "nightly_upload" should just use the
|
||||
# local multi-cache (public read-only cache + disk cache) instead.
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
# export TF_BISECT_BAD=a_failing_commit_sha
|
||||
# export TF_ANY_TARGETS="quoted list of targets, like on the command line"
|
||||
# export TF_ANY_MODE=test
|
||||
set -euxo pipefail
|
||||
set -exo pipefail
|
||||
cd "$(dirname "$0")/../../" # tensorflow/
|
||||
export TFCI="$(echo $TFCI | sed 's/,nightly_upload/,public_cache,disk_cache/')"
|
||||
git bisect start "$TF_BISECT_BAD" "$TF_BISECT_GOOD"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
# Check and rename wheels with auditwheel. Inserts the platform tags like
|
||||
# "manylinux_xyz" into the wheel filename.
|
||||
set -euxo pipefail
|
||||
set -exo pipefail
|
||||
|
||||
for wheel in /tf/pkg/*.whl; do
|
||||
echo "Checking and renaming $wheel..."
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# ==============================================================================
|
||||
set -euxo pipefail
|
||||
set -exo pipefail
|
||||
|
||||
# Run this from inside the tensorflow github directory.
|
||||
# Usage: setup_venv_test.sh venv_and_symlink_name "glob pattern for one wheel file"
|
||||
|
||||
@@ -42,6 +42,7 @@ TFCI_DOCKER_PULL_ENABLE=
|
||||
TFCI_DOCKER_REBUILD_ARGS=
|
||||
TFCI_DOCKER_REBUILD_ENABLE=
|
||||
TFCI_DOCKER_REBUILD_UPLOAD_ENABLE=
|
||||
TFCI_FIND_BIN=find
|
||||
TFCI_GIT_DIR=
|
||||
TFCI_INDEX_HTML_ENABLE=
|
||||
TFCI_INSTALLER_WHL_ENABLE=
|
||||
|
||||
@@ -15,6 +15,25 @@
|
||||
TFCI_DOCKER_ENABLE=1
|
||||
TFCI_DOCKER_PULL_ENABLE=1
|
||||
TFCI_DOCKER_IMAGE="gcr.io/tensorflow-testing/tf-win2019-rbe@sha256:d3577d20dea75966faf7fd03479c71462441937df5694259109c2ee1d002a3dd"
|
||||
TFCI_BAZEL_BAZELRC_ARGS="--output_user_root=C:/t"
|
||||
TFCI_BAZEL_COMMON_ARGS="--repo_env=HERMETIC_PYTHON_VERSION=$TFCI_PYTHON_VERSION"
|
||||
TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=windows_x86_cpu
|
||||
TFCI_OUTPUT_DIR=build_output
|
||||
TFCI_FIND_BIN=C:/tools/msys64/usr/bin/find.exe
|
||||
|
||||
# TODO(belitskiy): Add a link to the Dockerfile comment that explains this more.
|
||||
# Used to simulate a T:\ drive within the container, to a limited extent,
|
||||
# via a symlink.
|
||||
# Helpful since the internal CI utilizes a T:\ drive, part of which is mounted
|
||||
# to the container, and would result in C:\<path> != T:\<path> mismatches,
|
||||
# when using variables like `TFCI_OUTPUT_DIR` in `docker exec commands,
|
||||
# requiring conditional path adjustments throughout the CI scripts.
|
||||
# Note: This does not work for `docker cp` commands.
|
||||
TFCI_OUTPUT_WIN_DOCKER_DIR='C:/drive_t'
|
||||
|
||||
# Docker on Windows doesn't support the `host` networking mode, and so
|
||||
# port-forwarding is required for the container to detect it's running on GCE.
|
||||
export IP_ADDR=$(powershell -command "(Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias 'vEthernet (nat)').IPAddress")
|
||||
netsh interface portproxy add v4tov4 listenaddress=$IP_ADDR listenport=80 connectaddress=169.254.169.254 connectport=80
|
||||
# A local firewall rule for the container is added in
|
||||
# ci/official/utilities/setup_docker.sh.
|
||||
|
||||
49
ci/official/envs/windows_x86_2022
Normal file
49
ci/official/envs/windows_x86_2022
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright 2023 The TensorFlow 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.
|
||||
# ==============================================================================
|
||||
TFCI_DOCKER_ENABLE=1
|
||||
TFCI_DOCKER_PULL_ENABLE=1
|
||||
TFCI_DOCKER_IMAGE="gcr.io/tensorflow-testing/tf-win2022@sha256:915cb093630432c38b028f56bd31116a5559ebbc688d427b6092d86828ae03bc"
|
||||
TFCI_BAZEL_BAZELRC_ARGS="--output_user_root=C:/t"
|
||||
TFCI_BAZEL_COMMON_ARGS="--repo_env=HERMETIC_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config=windows_x86_cpu"
|
||||
TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=windows_x86_cpu
|
||||
TFCI_OUTPUT_DIR=build_output
|
||||
TFCI_FIND_BIN=C:/tools/msys64/usr/bin/find.exe
|
||||
TFCI_LIB_SUFFIX="-cpu-windows-x86_64"
|
||||
# auditwheel is not supported for Windows
|
||||
TFCI_WHL_AUDIT_ENABLE=0
|
||||
TFCI_WHL_AUDIT_PLAT=0
|
||||
# Tests are extremely slow at the moment
|
||||
TFCI_WHL_BAZEL_TEST_ENABLE=0
|
||||
TFCI_WHL_SIZE_LIMIT=450M
|
||||
TFCI_WHL_SIZE_LIMIT_ENABLE=1
|
||||
TFCI_WHL_IMPORT_TEST_ENABLE=1
|
||||
TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS=""
|
||||
|
||||
# TODO(belitskiy): Add a link to the Dockerfile comment that explains this more.
|
||||
# Used to simulate a T:\ drive within the container, to a limited extent,
|
||||
# via a symlink.
|
||||
# Helpful since the internal CI utilizes a T:\ drive, part of which is mounted
|
||||
# to the container, and would result in C:\<path> != T:\<path> mismatches,
|
||||
# when using variables like `TFCI_OUTPUT_DIR` in `docker exec commands,
|
||||
# requiring conditional path adjustments throughout the CI scripts.
|
||||
# Note: This does not work for `docker cp` commands.
|
||||
TFCI_OUTPUT_WIN_DOCKER_DIR='C:/drive_t'
|
||||
|
||||
# Docker on Windows doesn't support the `host` networking mode, and so
|
||||
# port-forwarding is required for the container to detect it's running on GCE.
|
||||
export IP_ADDR=$(powershell -command "(Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias 'vEthernet (nat)').IPAddress")
|
||||
netsh interface portproxy add v4tov4 listenaddress=$IP_ADDR listenport=80 connectaddress=169.254.169.254 connectport=80
|
||||
# A local firewall rule for the container is added in
|
||||
# ci/official/utilities/setup_docker.sh.
|
||||
@@ -25,10 +25,14 @@ if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then
|
||||
tfrun python3 tensorflow/tools/ci_build/update_version.py --nightly
|
||||
fi
|
||||
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS test $TFCI_BAZEL_COMMON_ARGS --config=linux_libtensorflow_test
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS build $TFCI_BAZEL_COMMON_ARGS --config=linux_libtensorflow_build
|
||||
if [[ $(uname -s) != MSYS_NT* ]]; then
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS test $TFCI_BAZEL_COMMON_ARGS --config=linux_libtensorflow_test
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS build $TFCI_BAZEL_COMMON_ARGS --config=linux_libtensorflow_build
|
||||
else
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS build $TFCI_BAZEL_COMMON_ARGS --config=windows_libtensorflow_build
|
||||
fi
|
||||
|
||||
tfrun ./ci/official/utilities/repack_libtensorflow.sh "$TFCI_OUTPUT_DIR" "$TFCI_LIB_SUFFIX"
|
||||
tfrun bash ./ci/official/utilities/repack_libtensorflow.sh "$TFCI_OUTPUT_DIR" "$TFCI_LIB_SUFFIX"
|
||||
|
||||
if [[ "$TFCI_ARTIFACT_STAGING_GCS_ENABLE" == 1 ]]; then
|
||||
# Note: -n disables overwriting previously created files.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
source "${BASH_SOURCE%/*}/utilities/setup.sh"
|
||||
|
||||
if [[ `uname -s | grep -P '^MSYS_NT'` ]]; then
|
||||
PROFILE_JSON_PATH=$(replace_drive_letter_with_c "$TFCI_OUTPUT_DIR")
|
||||
PROFILE_JSON_PATH=$(replace_drive_letter_with_prefix "$TFCI_OUTPUT_WIN_DOCKER_DIR")
|
||||
PROFILE_JSON_PATH="$PROFILE_JSON_PATH/profile.json.gz"
|
||||
else
|
||||
PROFILE_JSON_PATH="$TFCI_OUTPUT_DIR/profile.json.gz"
|
||||
@@ -29,14 +29,9 @@ if [[ "$TFCI_WHL_NUMPY_VERSION" == 1 ]]; then
|
||||
fi
|
||||
|
||||
if [[ $TFCI_PYCPP_SWAP_TO_BUILD_ENABLE == 1 ]]; then
|
||||
tfrun bazel build $TFCI_BAZEL_COMMON_ARGS --profile "$PROFILE_JSON_PATH" --@local_config_cuda//cuda:override_include_cuda_libs=true --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_pycpp_test"
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS build $TFCI_BAZEL_COMMON_ARGS --profile "$PROFILE_JSON_PATH" --@local_config_cuda//cuda:override_include_cuda_libs=true --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_pycpp_test"
|
||||
else
|
||||
# TODO(belitskiy): Clean this up when migrating to new VM/Docker image
|
||||
if [[ `uname -s | grep -P '^MSYS_NT'` ]]; then
|
||||
tfrun bazel --output_user_root 'C:/tmp' test $TFCI_BAZEL_COMMON_ARGS --profile "$PROFILE_JSON_PATH" --@local_config_cuda//cuda:override_include_cuda_libs=true --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_pycpp_test"
|
||||
else
|
||||
tfrun bazel test $TFCI_BAZEL_COMMON_ARGS --profile "$PROFILE_JSON_PATH" --@local_config_cuda//cuda:override_include_cuda_libs=true --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_pycpp_test"
|
||||
fi
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS test $TFCI_BAZEL_COMMON_ARGS --profile "$PROFILE_JSON_PATH" --@local_config_cuda//cuda:override_include_cuda_libs=true --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_pycpp_test"
|
||||
fi
|
||||
|
||||
# Note: the profile can be viewed by visiting chrome://tracing in a Chrome browser.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
# ==============================================================================
|
||||
|
||||
set -euxo pipefail
|
||||
set -exo pipefail
|
||||
|
||||
function resultstore_extract_fallback {
|
||||
# In case the main script fails somehow.
|
||||
|
||||
@@ -304,7 +304,7 @@ EOF
|
||||
# anything with a Windows-only toolchain, and bazel errors if trying to build
|
||||
# that directory.
|
||||
@test "bazel nobuild passes on all of TF except TF Lite and win toolchains" {
|
||||
bazel build --experimental_cc_shared_library --nobuild --keep_going -- //tensorflow/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/win/... -//tensorflow/tools/toolchains/win_1803/...
|
||||
bazel build --experimental_cc_shared_library --nobuild --keep_going -- //tensorflow/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/win/... -//tensorflow/tools/toolchains/win_1803/... -//tensorflow/tools/toolchains/win2022/...
|
||||
}
|
||||
|
||||
@test "API compatibility test passes, ensuring no unexpected changes to the TF API" {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
# This script is aware of TFCI_ variables, so it doesn't need any arguments.
|
||||
# Puts new wheel through auditwheel to rename and verify it, deletes the old
|
||||
# one, checks the filesize, and then ensures the new wheel is installable.
|
||||
set -euxo pipefail
|
||||
set -exo pipefail
|
||||
|
||||
cd "$TFCI_OUTPUT_DIR"
|
||||
|
||||
@@ -46,7 +46,7 @@ fi
|
||||
# Check if size is too big. TFCI_WHL_SIZE_LIMIT is in find's format, which can be
|
||||
# 'k' for kilobytes, 'M' for megabytes, or 'G' for gigabytes, and the + to indicate
|
||||
# "anything greater than" is added by the script.
|
||||
if [[ "$TFCI_WHL_SIZE_LIMIT_ENABLE" == "1" ]] && [[ -n "$(find . -iname "*.whl" -size "+$TFCI_WHL_SIZE_LIMIT")" ]]; then
|
||||
if [[ "$TFCI_WHL_SIZE_LIMIT_ENABLE" == "1" ]] && [[ -n "$("$TFCI_FIND_BIN" . -iname "*.whl" -size "+$TFCI_WHL_SIZE_LIMIT")" ]]; then
|
||||
echo "Error: Generated wheel is too big! Limit is $TFCI_WHL_SIZE_LIMIT"
|
||||
echo '(search for TFCI_WHL_SIZE_LIMIT to change it)'
|
||||
ls -sh *.whl
|
||||
@@ -54,9 +54,18 @@ if [[ "$TFCI_WHL_SIZE_LIMIT_ENABLE" == "1" ]] && [[ -n "$(find . -iname "*.whl"
|
||||
fi
|
||||
|
||||
# Quick install checks
|
||||
venv=$(mktemp -d)
|
||||
"python${TFCI_PYTHON_VERSION}" -m venv "$venv"
|
||||
python="$venv/bin/python3"
|
||||
venv_dir=$(mktemp -d)
|
||||
if [[ $(uname -s) != MSYS_NT* ]]; then
|
||||
"python${TFCI_PYTHON_VERSION}" -m venv "$venv_dir"
|
||||
python="$venv_dir/bin/python3"
|
||||
else
|
||||
# When using the Linux-like path, venv creation quietly fails, which is
|
||||
# why it's converted here.
|
||||
venv_dir=$(cygpath -m $venv_dir)
|
||||
"/c/python${TFCI_PYTHON_VERSION}/python.exe" -m venv "$venv_dir"
|
||||
python="$venv_dir/Scripts/python.exe"
|
||||
fi
|
||||
|
||||
# TODO(b/366266944) Remove the check after tf docker image upgrade for NumPy 2
|
||||
# and numpy 1 support is dropped b/361369076.
|
||||
if [[ "$TFCI_WHL_NUMPY_VERSION" == 1 ]]; then
|
||||
|
||||
@@ -54,11 +54,94 @@ function cp_normalized_srcjar() {
|
||||
cp "${tmp_dir}/new.jar" "${dest_jar}"
|
||||
rm -rf "${tmp_dir}"
|
||||
}
|
||||
|
||||
DIR=$1
|
||||
TARBALL_SUFFIX=$2
|
||||
mkdir -p "$DIR"
|
||||
cp bazel-bin/tensorflow/tools/lib_package/libtensorflow.tar.gz "${DIR}/libtensorflow${TARBALL_SUFFIX}.tar.gz"
|
||||
cp bazel-bin/tensorflow/tools/lib_package/libtensorflow_jni.tar.gz "${DIR}/libtensorflow_jni${TARBALL_SUFFIX}.tar.gz"
|
||||
cp bazel-bin/tensorflow/java/libtensorflow.jar "${DIR}"
|
||||
cp_normalized_srcjar bazel-bin/tensorflow/java/libtensorflow-src.jar "${DIR}/libtensorflow-src.jar"
|
||||
cp bazel-bin/tensorflow/tools/lib_package/libtensorflow_proto.zip "${DIR}"
|
||||
TARBALL_SUFFIX=$2
|
||||
|
||||
if [[ $(uname -s) != MSYS_NT* ]]; then
|
||||
cp bazel-bin/tensorflow/tools/lib_package/libtensorflow.tar.gz "${DIR}/libtensorflow${TARBALL_SUFFIX}.tar.gz"
|
||||
cp bazel-bin/tensorflow/tools/lib_package/libtensorflow_jni.tar.gz "${DIR}/libtensorflow_jni${TARBALL_SUFFIX}.tar.gz"
|
||||
cp bazel-bin/tensorflow/java/libtensorflow.jar "${DIR}"
|
||||
cp_normalized_srcjar bazel-bin/tensorflow/java/libtensorflow-src.jar "${DIR}/libtensorflow-src.jar"
|
||||
cp bazel-bin/tensorflow/tools/lib_package/libtensorflow_proto.zip "${DIR}"
|
||||
else
|
||||
LIB_PKG="$1/lib_package"
|
||||
mkdir -p ${LIB_PKG}
|
||||
|
||||
# Zip up the .dll and the LICENSE for the JNI library.
|
||||
cp bazel-bin/tensorflow/java/tensorflow_jni.dll ${LIB_PKG}/tensorflow_jni.dll
|
||||
zip -j ${LIB_PKG}/libtensorflow_jni-cpu-windows-$(uname -m).zip \
|
||||
${LIB_PKG}/tensorflow_jni.dll \
|
||||
bazel-bin/tensorflow/tools/lib_package/include/tensorflow/THIRD_PARTY_TF_JNI_LICENSES \
|
||||
LICENSE
|
||||
rm -f ${LIB_PKG}/tensorflow_jni.dll
|
||||
|
||||
# Zip up the .dll, LICENSE and include files for the C library.
|
||||
mkdir -p ${LIB_PKG}/include/tensorflow/c
|
||||
mkdir -p ${LIB_PKG}/include/tensorflow/c/eager
|
||||
mkdir -p ${LIB_PKG}/include/tensorflow/core/platform
|
||||
mkdir -p ${LIB_PKG}/include/xla/tsl/c
|
||||
mkdir -p ${LIB_PKG}/include/tsl/platform
|
||||
mkdir -p ${LIB_PKG}/lib
|
||||
cp bazel-bin/tensorflow/tensorflow.dll ${LIB_PKG}/lib/tensorflow.dll
|
||||
cp bazel-bin/tensorflow/tensorflow.lib ${LIB_PKG}/lib/tensorflow.lib
|
||||
cp tensorflow/c/c_api.h \
|
||||
tensorflow/c/tf_attrtype.h \
|
||||
tensorflow/c/tf_buffer.h \
|
||||
tensorflow/c/tf_datatype.h \
|
||||
tensorflow/c/tf_status.h \
|
||||
tensorflow/c/tf_tensor.h \
|
||||
tensorflow/c/tf_tensor_helper.h \
|
||||
tensorflow/c/tf_tstring.h \
|
||||
tensorflow/c/tf_file_statistics.h \
|
||||
tensorflow/c/tensor_interface.h \
|
||||
tensorflow/c/c_api_macros.h \
|
||||
tensorflow/c/c_api_experimental.h \
|
||||
${LIB_PKG}/include/tensorflow/c
|
||||
cp tensorflow/c/eager/c_api.h \
|
||||
tensorflow/c/eager/c_api_experimental.h \
|
||||
tensorflow/c/eager/dlpack.h \
|
||||
${LIB_PKG}/include/tensorflow/c/eager
|
||||
cp tensorflow/core/platform/ctstring.h \
|
||||
tensorflow/core/platform/ctstring_internal.h \
|
||||
${LIB_PKG}/include/tensorflow/core/platform
|
||||
cp third_party/xla/xla/tsl/c/tsl_status.h ${LIB_PKG}/include/xla/tsl/c
|
||||
cp third_party/xla/third_party/tsl/tsl/platform/ctstring.h \
|
||||
third_party/xla/third_party/tsl/tsl/platform/ctstring_internal.h \
|
||||
${LIB_PKG}/include/tsl/platform
|
||||
cp LICENSE ${LIB_PKG}/LICENSE
|
||||
cp bazel-bin/tensorflow/tools/lib_package/THIRD_PARTY_TF_C_LICENSES ${LIB_PKG}/
|
||||
cd ${LIB_PKG}
|
||||
zip libtensorflow-cpu-windows-$(uname -m).zip \
|
||||
lib/tensorflow.dll \
|
||||
lib/tensorflow.lib \
|
||||
include/tensorflow/c/eager/c_api.h \
|
||||
include/tensorflow/c/eager/c_api_experimental.h \
|
||||
include/tensorflow/c/eager/dlpack.h \
|
||||
include/tensorflow/c/c_api.h \
|
||||
include/tensorflow/c/tf_attrtype.h \
|
||||
include/tensorflow/c/tf_buffer.h \
|
||||
include/tensorflow/c/tf_datatype.h \
|
||||
include/tensorflow/c/tf_status.h \
|
||||
include/tensorflow/c/tf_tensor.h \
|
||||
include/tensorflow/c/tf_tensor_helper.h \
|
||||
include/tensorflow/c/tf_tstring.h \
|
||||
include/tensorflow/c/tf_file_statistics.h \
|
||||
include/tensorflow/c/tensor_interface.h \
|
||||
include/tensorflow/c/c_api_macros.h \
|
||||
include/tensorflow/c/c_api_experimental.h \
|
||||
include/tensorflow/core/platform/ctstring.h \
|
||||
include/tensorflow/core/platform/ctstring_internal.h \
|
||||
include/xla/tsl/c/tsl_status.h \
|
||||
include/tsl/platform/ctstring.h \
|
||||
include/tsl/platform/ctstring_internal.h \
|
||||
LICENSE \
|
||||
THIRD_PARTY_TF_C_LICENSES
|
||||
rm -rf lib include
|
||||
|
||||
cd ..
|
||||
tar -zcvf windows_cpu_libtensorflow_binaries.tar.gz $LIB_PKG
|
||||
rm -rf $LIB_PKG
|
||||
|
||||
fi
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
# -o history: record shell history
|
||||
# -o allexport: export all functions and variables to be available to subscripts
|
||||
# (affects 'source $TFCI')
|
||||
set -euxo pipefail -o history -o allexport
|
||||
set -exo pipefail -o history -o allexport
|
||||
|
||||
# Set TFCI_GIT_DIR, the root directory for all commands, to two directories
|
||||
# above the location of this file (setup.sh). We could also use "git rev-parse
|
||||
@@ -81,6 +81,7 @@ else
|
||||
source "$FROM_ENV"
|
||||
rm "$FROM_ENV"
|
||||
fi
|
||||
set +u
|
||||
fi
|
||||
|
||||
# If building installer wheels, set the required environment variables that are
|
||||
@@ -118,7 +119,7 @@ exec > >(tee "$TFCI_OUTPUT_DIR/script.log") 2>&1
|
||||
# functionality instead.
|
||||
tfrun() { "$@"; }
|
||||
|
||||
if [[ `uname -s | grep -P '^MSYS_NT'` ]]; then
|
||||
if [[ $(uname -s) = MSYS_NT* ]]; then
|
||||
source ./ci/official/utilities/windows.sh
|
||||
echo 'Converting MSYS Linux-like paths to Windows paths (for Docker, Python, etc.)'
|
||||
source <(python ./ci/official/utilities/convert_msys_paths_to_win_paths.py --whitelist-prefix TFCI_)
|
||||
|
||||
@@ -38,15 +38,17 @@ if ! docker container inspect tf >/dev/null 2>&1 ; then
|
||||
env_file=$(mktemp)
|
||||
env | grep ^TFCI_ > "$env_file"
|
||||
|
||||
if [[ $(uname -s) == MSYS_NT* ]]; then
|
||||
is_windows=true
|
||||
else
|
||||
is_windows=false
|
||||
fi
|
||||
|
||||
WORKING_DIR="$TFCI_GIT_DIR"
|
||||
if [[ `uname -s | grep -P '^MSYS_NT'` ]]; then
|
||||
if [[ "$is_windows" == true ]]; then
|
||||
env_file=$(cygpath -m $env_file)
|
||||
# Host dirs can only be mapped to an existing drive inside the container, so
|
||||
# T:\ is replaced with C:\.
|
||||
_TFCI_OUTPUT_DIR_WIN=$(replace_drive_letter_with_c "$TFCI_OUTPUT_DIR")
|
||||
sed -iE 's|^TFCI_OUTPUT_DIR=.*|TFCI_OUTPUT_DIR='"$_TFCI_OUTPUT_DIR_WIN"'|g' $env_file
|
||||
WORKING_DIR=$(replace_drive_letter_with_c "$TFCI_GIT_DIR")
|
||||
echo "GCE_METADATA_HOST=$IP_ADDR" > $env_file
|
||||
WORKING_DIR=$(replace_drive_letter_with_prefix "$TFCI_GIT_DIR" "$TFCI_OUTPUT_WIN_DOCKER_DIR")
|
||||
echo "GCE_METADATA_HOST=$IP_ADDR" >> $env_file
|
||||
fi
|
||||
|
||||
docker run $TFCI_DOCKER_ARGS --name tf -w "$WORKING_DIR" -itd --rm \
|
||||
@@ -55,7 +57,7 @@ if ! docker container inspect tf >/dev/null 2>&1 ; then
|
||||
"$TFCI_DOCKER_IMAGE" \
|
||||
bash
|
||||
|
||||
if [[ `uname -s | grep -P '^MSYS_NT'` ]]; then
|
||||
if [[ "$is_windows" == true ]]; then
|
||||
# Allow requests from the container.
|
||||
# Additional setup is contained in ci/official/envs/rbe.
|
||||
CONTAINER_IP_ADDR=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' tf)
|
||||
|
||||
@@ -19,8 +19,15 @@
|
||||
|
||||
# Docker on Windows has difficulty using volumes other than C:\, when it comes
|
||||
# to setting up up volume mappings.
|
||||
# Thus, the drive letter is replaced with C:\, in case it's
|
||||
# something else (ex. T:), which is frequently the case inside Kokoro jobs.
|
||||
function replace_drive_letter_with_c () {
|
||||
sed -E "s|^[a-zA-Z]:|C:|g" <<< $1
|
||||
# Thus, the drive letter is replaced with the passed prefix.
|
||||
# If no prefix is passed, by default, it's replaced with C:\, in case it's
|
||||
# something else (ex. T:), which is a volume used in internal CI.
|
||||
function replace_drive_letter_with_prefix () {
|
||||
local path_prefix
|
||||
if [[ -z "$2" ]]; then
|
||||
path_prefix="C:"
|
||||
else
|
||||
path_prefix="$2"
|
||||
fi
|
||||
sed -E "s|^[a-zA-Z]:|${path_prefix}|g" <<< "$1"
|
||||
}
|
||||
|
||||
@@ -33,11 +33,12 @@ if [[ "$TFCI_WHL_NUMPY_VERSION" == 1 ]]; then
|
||||
cp ./ci/official/requirements_updater/numpy1_requirements/*.txt .
|
||||
fi
|
||||
|
||||
tfrun bazel build $TFCI_BAZEL_COMMON_ARGS --config=cuda_wheel //tensorflow/tools/pip_package:wheel $TFCI_BUILD_PIP_PACKAGE_ARGS
|
||||
tfrun find ./bazel-bin/tensorflow/tools/pip_package -iname "*.whl" -exec cp {} $TFCI_OUTPUT_DIR \;
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS build $TFCI_BAZEL_COMMON_ARGS --config=cuda_wheel //tensorflow/tools/pip_package:wheel $TFCI_BUILD_PIP_PACKAGE_ARGS
|
||||
|
||||
tfrun "$TFCI_FIND_BIN" ./bazel-bin/tensorflow/tools/pip_package -iname "*.whl" -exec cp {} $TFCI_OUTPUT_DIR \;
|
||||
tfrun mkdir ./dist
|
||||
tfrun cp $TFCI_OUTPUT_DIR/*.whl ./dist
|
||||
tfrun ./ci/official/utilities/rename_and_verify_wheels.sh
|
||||
tfrun bash ./ci/official/utilities/rename_and_verify_wheels.sh
|
||||
|
||||
if [[ "$TFCI_ARTIFACT_STAGING_GCS_ENABLE" == 1 ]]; then
|
||||
# Note: -n disables overwriting previously created files.
|
||||
@@ -45,5 +46,5 @@ if [[ "$TFCI_ARTIFACT_STAGING_GCS_ENABLE" == 1 ]]; then
|
||||
fi
|
||||
|
||||
if [[ "$TFCI_WHL_BAZEL_TEST_ENABLE" == 1 ]]; then
|
||||
tfrun bazel test $TFCI_BAZEL_COMMON_ARGS $TFCI_BUILD_PIP_PACKAGE_ARGS --repo_env=TF_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_wheel_test"
|
||||
tfrun bazel $TFCI_BAZEL_BAZELRC_ARGS test $TFCI_BAZEL_COMMON_ARGS $TFCI_BUILD_PIP_PACKAGE_ARGS --repo_env=TF_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config="${TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX}_wheel_test"
|
||||
fi
|
||||
|
||||
@@ -189,6 +189,8 @@ tf_staging/tensorflow/tools/toolchains/win/20240424/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win/bazel_211/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win/tf_win_05022023/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win2022/20241118/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win2022/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win_1803/py38/BUILD:
|
||||
tf_staging/tensorflow/tools/toolchains/win_1803/py39/BUILD:
|
||||
tf_staging/tensorflow/virtual_root_template_v1.__init__:.py
|
||||
|
||||
647
tensorflow/tools/toolchains/win2022/20241118/BUILD
Normal file
647
tensorflow/tools/toolchains/win2022/20241118/BUILD
Normal file
@@ -0,0 +1,647 @@
|
||||
# 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.
|
||||
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
|
||||
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")
|
||||
load(":windows_cc_toolchain_config.bzl", "cc_toolchain_config")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
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_x86_windows|msvc-cl": ":cc-compiler-x64_x86_windows",
|
||||
"x64_arm_windows|msvc-cl": ":cc-compiler-x64_arm_windows",
|
||||
"x64_arm64_windows|msvc-cl": ":cc-compiler-arm64_windows",
|
||||
"arm64_windows|msvc-cl": ":cc-compiler-arm64_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",
|
||||
"x64_x86_windows": ":cc-compiler-x64_x86_windows",
|
||||
"x64_arm_windows": ":cc-compiler-x64_arm_windows",
|
||||
"x64_arm64_windows": ":cc-compiler-arm64_windows",
|
||||
"arm64_windows": ":cc-compiler-arm64_windows",
|
||||
"x64_arm64_windows|clang-cl": ":cc-compiler-arm64_windows-clang-cl",
|
||||
"arm64_windows|clang-cl": ":cc-compiler-arm64_windows-clang-cl",
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
archiver_flags = ["/MACHINE:X64"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/lib.exe",
|
||||
msvc_link_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/link.exe",
|
||||
msvc_ml_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/ml64.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/lib.exe",
|
||||
"ml": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/ml64.exe",
|
||||
"cpp": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
"gcc": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/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_x86_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_x86",
|
||||
toolchain_identifier = "msvc_x64_x86",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_x64_x86",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:X86"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
],
|
||||
dbg_mode_debug_flag = "/DEBUG:FULL",
|
||||
default_link_flags = ["/MACHINE:X86"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG:FASTLINK",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/lib.exe",
|
||||
msvc_link_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/link.exe",
|
||||
msvc_ml_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/ml.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/lib.exe",
|
||||
"ml": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/ml.exe",
|
||||
"cpp": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
"gcc": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/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_x86",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-x64_x86_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:x86_32",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-x64_x86_windows",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-x64_arm_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_arm",
|
||||
toolchain_identifier = "msvc_x64_arm",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_x64_arm",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm.bat",
|
||||
msvc_env_include = "msvc_not_found",
|
||||
msvc_env_lib = "msvc_not_found",
|
||||
msvc_env_path = "msvc_not_found",
|
||||
msvc_env_tmp = "msvc_not_found",
|
||||
msvc_lib_path = "vc_installation_error_arm.bat",
|
||||
msvc_link_path = "vc_installation_error_arm.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm.bat",
|
||||
"ml": "vc_installation_error_arm.bat",
|
||||
"cpp": "vc_installation_error_arm.bat",
|
||||
"gcc": "vc_installation_error_arm.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm.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 = "msvc_x64_arm",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-x64_arm_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-x64_arm_windows",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-arm64_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_arm64",
|
||||
toolchain_identifier = "msvc_arm64",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_arm64",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM64"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM64"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm64.bat",
|
||||
msvc_env_include = "msvc_not_found",
|
||||
msvc_env_lib = "msvc_not_found",
|
||||
msvc_env_path = "msvc_not_found",
|
||||
msvc_env_tmp = "msvc_not_found",
|
||||
msvc_lib_path = "vc_installation_error_arm64.bat",
|
||||
msvc_link_path = "vc_installation_error_arm64.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm64.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm64.bat",
|
||||
"ml": "vc_installation_error_arm64.bat",
|
||||
"cpp": "vc_installation_error_arm64.bat",
|
||||
"gcc": "vc_installation_error_arm64.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm64.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 = "msvc_arm64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-arm64_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-arm64_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",
|
||||
archiver_flags = ["/MACHINE:X64"],
|
||||
compiler = "clang-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
"C:\\tools\\LLVM\\lib\\clang\\18\\include",
|
||||
],
|
||||
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 = "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt;C:\\tools\\LLVM\\lib\\clang\\18\\include",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64;C:\\tools\\LLVM\\lib\\clang\\18\\lib\\windows",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/tools/LLVM/bin/llvm-lib.exe",
|
||||
msvc_link_path = "C:/tools/LLVM/bin/lld-link.exe",
|
||||
msvc_ml_path = "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/tools/LLVM/bin/llvm-lib.exe",
|
||||
"ml": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"cpp": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"gcc": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/tools/LLVM/bin/lld-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 = "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-arm64_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_arm64",
|
||||
toolchain_identifier = "clang_cl_arm64",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "clang_cl_arm64",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM64"],
|
||||
compiler = "clang-cl",
|
||||
cpu = "arm64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM64"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm64.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 = "vc_installation_error_arm64.bat",
|
||||
msvc_link_path = "vc_installation_error_arm64.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm64.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "aarch64-pc-windows-msvc",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm64.bat",
|
||||
"ml": "vc_installation_error_arm64.bat",
|
||||
"cpp": "vc_installation_error_arm64.bat",
|
||||
"gcc": "vc_installation_error_arm64.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm64.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_arm64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-arm64_windows-clang-cl",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:clang-cl",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-arm64_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:armv7",
|
||||
"@platforms//os:android",
|
||||
],
|
||||
toolchain = ":cc-compiler-armeabi-v7a",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
@@ -0,0 +1,82 @@
|
||||
# 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 = "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 = "llvm-profdata", 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],
|
||||
)
|
||||
@@ -0,0 +1,7 @@
|
||||
This file is generated by cc_configure and contains builtin include directories
|
||||
that clang-cl 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.
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
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.
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
37
tensorflow/tools/toolchains/win2022/BUILD
Normal file
37
tensorflow/tools/toolchains/win2022/BUILD
Normal file
@@ -0,0 +1,37 @@
|
||||
licenses(["restricted"])
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
java_runtime(
|
||||
name = "windows_jdk8",
|
||||
srcs = [],
|
||||
java_home = "C:/openjdk",
|
||||
)
|
||||
|
||||
# Register a Windows 2022 (Clang) platform.
|
||||
# Note that while this does support RBE, the current pool size is tiny,
|
||||
# and this platform is meant to be used as a non-RBE one, for now.
|
||||
platform(
|
||||
name = "windows_ltsc2022_clang",
|
||||
constraint_values = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:clang-cl",
|
||||
],
|
||||
remote_execution_properties = """
|
||||
properties:{
|
||||
name: "container-image"
|
||||
value: "docker://gcr.io/tensorflow-testing/tf-win2022@sha256:915cb093630432c38b028f56bd31116a5559ebbc688d427b6092d86828ae03bc"
|
||||
}
|
||||
properties:{
|
||||
name: "OSFamily"
|
||||
value: "Windows"
|
||||
}
|
||||
properties:{
|
||||
name: "Pool" value: "win2022"
|
||||
}
|
||||
properties:{
|
||||
name: "dockerNetwork" value: "off"
|
||||
}
|
||||
""",
|
||||
)
|
||||
28
third_party/xla/.bazelrc
vendored
28
third_party/xla/.bazelrc
vendored
@@ -451,12 +451,13 @@ build:avx_linux --copt=-mavx
|
||||
build:avx_linux --host_copt=-mavx
|
||||
build:avx_win --copt=/arch:AVX
|
||||
|
||||
# TODO(belitskiy): Remove once Win2019 is gone.
|
||||
# Use Clang-cl compiler on Windows
|
||||
build:win_clang --copt=/clang:-Weverything
|
||||
build:win_clang --host_copt=/clang:-Weverything
|
||||
build:win_clang --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
|
||||
build:win_clang --extra_execution_platforms=//tools/toolchains/win:x64_windows-clang-cl
|
||||
build:win_clang --host_platform=//tools/toolchains/win:x64_windows-clang-cl
|
||||
build:win_clang --copt=/clang:-Weverything
|
||||
build:win_clang --host_copt=/clang:-Weverything
|
||||
build:win_clang --compiler=clang-cl
|
||||
build:win_clang --linkopt=/FORCE:MULTIPLE
|
||||
build:win_clang --host_linkopt=/FORCE:MULTIPLE
|
||||
@@ -464,6 +465,23 @@ test:win_clang --linkopt=/FORCE:MULTIPLE
|
||||
test:win_clang --host_linkopt=/FORCE:MULTIPLE
|
||||
test:win_clang --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
|
||||
|
||||
# build:windows_x86_cpu --extra_toolchains="//tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
|
||||
# build:windows_x86_cpu --extra_execution_platforms="//tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
# build:windows_x86_cpu --host_platform="//tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --crosstool_top="//tools/toolchains/win2022/20241118:toolchain"
|
||||
build:windows_x86_cpu --extra_toolchains="//tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
|
||||
build:windows_x86_cpu --extra_execution_platforms="//tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --host_platform="//tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --platforms="//tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --copt=/clang:-Weverything
|
||||
build:windows_x86_cpu --host_copt=/clang:-Weverything
|
||||
build:windows_x86_cpu --compiler=clang-cl
|
||||
build:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
|
||||
build:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
|
||||
|
||||
# Options to build TensorFlow 1.x or 2.x.
|
||||
# TODO(kanglan): Change v2's define to default behavior
|
||||
build:v2 --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
|
||||
@@ -734,6 +752,7 @@ build:tf_public_macos_cache_push --config=tf_public_macos_cache --remote_upload_
|
||||
# LIBTENSORFLOW TESTS are for building Libtensorflow archives. These are CUDA/CPU-agnostic.
|
||||
test:linux_libtensorflow_test --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow_test //tensorflow/tools/lib_package:libtensorflow_java_test
|
||||
build:linux_libtensorflow_build --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow.tar.gz //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz //tensorflow/java:libtensorflow.jar //tensorflow/java:libtensorflow-src.jar //tensorflow/tools/lib_package:libtensorflow_proto.zip
|
||||
build:windows_libtensorflow_build --config=cuda_wheel --config=windows_x86_cpu -- //:LICENSE //tensorflow:tensorflow.dll //tensorflow:tensorflow_dll_import_lib //tensorflow/tools/lib_package:clicenses_generate //tensorflow/java:tensorflow_jni.dll //tensorflow/tools/lib_package:jnilicenses_generate
|
||||
|
||||
# PYTHON TESTS run a suite of Python tests intended for verifying that the Python wheel
|
||||
# will work properly. These are usually run Nightly or upon Release.
|
||||
@@ -762,6 +781,11 @@ test:macos_x86_wheel_test_filters --test_tag_filters=-no_oss,-tf_tosa,-oss_exclu
|
||||
test:macos_x86_wheel_test_filters --build_tag_filters=-no_oss,-tf_tosa,-oss_excluded,-oss_serial,-no_oss_py38,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test
|
||||
test:macos_x86_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
|
||||
test:macos_x86_wheel_test --@local_tsl//third_party/py:wheel_dependency=true --config=macos_x86_wheel_test_filters -- //tensorflow/... //tensorflow/tools/pip_package:prebuilt_wheel_import_api_packages_test_cpu -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
|
||||
# WINDOWS X86 WHEEL
|
||||
test:windows_x86_cpu_wheel_test_filters --test_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-gpu,-tpu,-benchmark-test
|
||||
test:windows_x86_cpu_wheel_test_filters --build_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-benchmark-test
|
||||
test:windows_x86_cpu_wheel_test_filters --test_lang_filters=cc,py --test_size_filters=small,medium --test_timeout="300,450,1200,3600"
|
||||
test:windows_x86_cpu_wheel_test --build_tests_only --config=windows_x86_cpu_pycpp_test_filters -- //tensorflow/... -//tensorflow/java/... -//tensorflow/lite/... -//tensorflow/compiler/...
|
||||
|
||||
# PYCPP TESTS run a suite of Python and C++ tests to verify general correctness over
|
||||
# the whole TF code base. These are usually run continuously or upon presubmit.
|
||||
|
||||
2
third_party/xla/opensource_only.files
vendored
2
third_party/xla/opensource_only.files
vendored
@@ -57,5 +57,7 @@ tools/toolchains/win/20240424/BUILD:
|
||||
tools/toolchains/win/BUILD:
|
||||
tools/toolchains/win/bazel_211/BUILD:
|
||||
tools/toolchains/win/tf_win_05022023/BUILD:
|
||||
tools/toolchains/win2022/20241118/BUILD:
|
||||
tools/toolchains/win2022/BUILD:
|
||||
tools/toolchains/win_1803/py38/BUILD:
|
||||
tools/toolchains/win_1803/py39/BUILD:
|
||||
|
||||
28
third_party/xla/third_party/tsl/.bazelrc
vendored
28
third_party/xla/third_party/tsl/.bazelrc
vendored
@@ -451,12 +451,13 @@ build:avx_linux --copt=-mavx
|
||||
build:avx_linux --host_copt=-mavx
|
||||
build:avx_win --copt=/arch:AVX
|
||||
|
||||
# TODO(belitskiy): Remove once Win2019 is gone.
|
||||
# Use Clang-cl compiler on Windows
|
||||
build:win_clang --copt=/clang:-Weverything
|
||||
build:win_clang --host_copt=/clang:-Weverything
|
||||
build:win_clang --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
|
||||
build:win_clang --extra_execution_platforms=//tensorflow/tools/toolchains/win:x64_windows-clang-cl
|
||||
build:win_clang --host_platform=//tensorflow/tools/toolchains/win:x64_windows-clang-cl
|
||||
build:win_clang --copt=/clang:-Weverything
|
||||
build:win_clang --host_copt=/clang:-Weverything
|
||||
build:win_clang --compiler=clang-cl
|
||||
build:win_clang --linkopt=/FORCE:MULTIPLE
|
||||
build:win_clang --host_linkopt=/FORCE:MULTIPLE
|
||||
@@ -464,6 +465,23 @@ test:win_clang --linkopt=/FORCE:MULTIPLE
|
||||
test:win_clang --host_linkopt=/FORCE:MULTIPLE
|
||||
test:win_clang --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
|
||||
|
||||
# build:windows_x86_cpu --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
|
||||
# build:windows_x86_cpu --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
# build:windows_x86_cpu --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --crosstool_top="//tensorflow/tools/toolchains/win2022/20241118:toolchain"
|
||||
build:windows_x86_cpu --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
|
||||
build:windows_x86_cpu --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
|
||||
build:windows_x86_cpu --copt=/clang:-Weverything
|
||||
build:windows_x86_cpu --host_copt=/clang:-Weverything
|
||||
build:windows_x86_cpu --compiler=clang-cl
|
||||
build:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
|
||||
build:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
|
||||
test:windows_x86_cpu --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
|
||||
|
||||
# Options to build TensorFlow 1.x or 2.x.
|
||||
# TODO(kanglan): Change v2's define to default behavior
|
||||
build:v2 --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
|
||||
@@ -734,6 +752,7 @@ build:tf_public_macos_cache_push --config=tf_public_macos_cache --remote_upload_
|
||||
# LIBTENSORFLOW TESTS are for building Libtensorflow archives. These are CUDA/CPU-agnostic.
|
||||
test:linux_libtensorflow_test --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow_test //tensorflow/tools/lib_package:libtensorflow_java_test
|
||||
build:linux_libtensorflow_build --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow.tar.gz //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz //tensorflow/java:libtensorflow.jar //tensorflow/java:libtensorflow-src.jar //tensorflow/tools/lib_package:libtensorflow_proto.zip
|
||||
build:windows_libtensorflow_build --config=cuda_wheel --config=windows_x86_cpu -- //:LICENSE //tensorflow:tensorflow.dll //tensorflow:tensorflow_dll_import_lib //tensorflow/tools/lib_package:clicenses_generate //tensorflow/java:tensorflow_jni.dll //tensorflow/tools/lib_package:jnilicenses_generate
|
||||
|
||||
# PYTHON TESTS run a suite of Python tests intended for verifying that the Python wheel
|
||||
# will work properly. These are usually run Nightly or upon Release.
|
||||
@@ -762,6 +781,11 @@ test:macos_x86_wheel_test_filters --test_tag_filters=-no_oss,-tf_tosa,-oss_exclu
|
||||
test:macos_x86_wheel_test_filters --build_tag_filters=-no_oss,-tf_tosa,-oss_excluded,-oss_serial,-no_oss_py38,-no_oss_py39,-no_oss_py310,-nomac,-no_mac,-mac_excluded,-v1only,-gpu,-tpu,-benchmark-test
|
||||
test:macos_x86_wheel_test_filters --test_lang_filters=py --test_size_filters=small,medium
|
||||
test:macos_x86_wheel_test --@local_tsl//third_party/py:wheel_dependency=true --config=macos_x86_wheel_test_filters -- //tensorflow/... //tensorflow/tools/pip_package:prebuilt_wheel_import_api_packages_test_cpu -//tensorflow/compiler/tf2tensorrt/... -//tensorflow/core/tpu/... -//tensorflow/lite/... -//tensorflow/tools/toolchains/... -//tensorflow/go/... -//tensorflow/java/... -//tensorflow/compiler/aot/...
|
||||
# WINDOWS X86 WHEEL
|
||||
test:windows_x86_cpu_wheel_test_filters --test_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-gpu,-tpu,-benchmark-test
|
||||
test:windows_x86_cpu_wheel_test_filters --build_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-benchmark-test
|
||||
test:windows_x86_cpu_wheel_test_filters --test_lang_filters=cc,py --test_size_filters=small,medium --test_timeout="300,450,1200,3600"
|
||||
test:windows_x86_cpu_wheel_test --build_tests_only --config=windows_x86_cpu_pycpp_test_filters -- //tensorflow/... -//tensorflow/java/... -//tensorflow/lite/... -//tensorflow/compiler/...
|
||||
|
||||
# PYCPP TESTS run a suite of Python and C++ tests to verify general correctness over
|
||||
# the whole TF code base. These are usually run continuously or upon presubmit.
|
||||
|
||||
@@ -176,5 +176,7 @@ tools/toolchains/win/20240424/BUILD:
|
||||
tools/toolchains/win/BUILD:
|
||||
tools/toolchains/win/bazel_211/BUILD:
|
||||
tools/toolchains/win/tf_win_05022023/BUILD:
|
||||
tools/toolchains/win2022/20241118/BUILD:
|
||||
tools/toolchains/win2022/BUILD:
|
||||
tools/toolchains/win_1803/py38/BUILD:
|
||||
tools/toolchains/win_1803/py39/BUILD:
|
||||
|
||||
647
third_party/xla/third_party/tsl/tools/toolchains/win2022/20241118/BUILD
vendored
Normal file
647
third_party/xla/third_party/tsl/tools/toolchains/win2022/20241118/BUILD
vendored
Normal file
@@ -0,0 +1,647 @@
|
||||
# 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.
|
||||
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
|
||||
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")
|
||||
load(":windows_cc_toolchain_config.bzl", "cc_toolchain_config")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
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_x86_windows|msvc-cl": ":cc-compiler-x64_x86_windows",
|
||||
"x64_arm_windows|msvc-cl": ":cc-compiler-x64_arm_windows",
|
||||
"x64_arm64_windows|msvc-cl": ":cc-compiler-arm64_windows",
|
||||
"arm64_windows|msvc-cl": ":cc-compiler-arm64_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",
|
||||
"x64_x86_windows": ":cc-compiler-x64_x86_windows",
|
||||
"x64_arm_windows": ":cc-compiler-x64_arm_windows",
|
||||
"x64_arm64_windows": ":cc-compiler-arm64_windows",
|
||||
"arm64_windows": ":cc-compiler-arm64_windows",
|
||||
"x64_arm64_windows|clang-cl": ":cc-compiler-arm64_windows-clang-cl",
|
||||
"arm64_windows|clang-cl": ":cc-compiler-arm64_windows-clang-cl",
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
archiver_flags = ["/MACHINE:X64"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/lib.exe",
|
||||
msvc_link_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/link.exe",
|
||||
msvc_ml_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/ml64.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/lib.exe",
|
||||
"ml": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/ml64.exe",
|
||||
"cpp": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
"gcc": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/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_x86_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_x86",
|
||||
toolchain_identifier = "msvc_x64_x86",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_x64_x86",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:X86"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
],
|
||||
dbg_mode_debug_flag = "/DEBUG:FULL",
|
||||
default_link_flags = ["/MACHINE:X86"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG:FASTLINK",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/lib.exe",
|
||||
msvc_link_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/link.exe",
|
||||
msvc_ml_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/ml.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/lib.exe",
|
||||
"ml": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/ml.exe",
|
||||
"cpp": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
"gcc": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/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_x86",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-x64_x86_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:x86_32",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-x64_x86_windows",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-x64_arm_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_arm",
|
||||
toolchain_identifier = "msvc_x64_arm",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_x64_arm",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm.bat",
|
||||
msvc_env_include = "msvc_not_found",
|
||||
msvc_env_lib = "msvc_not_found",
|
||||
msvc_env_path = "msvc_not_found",
|
||||
msvc_env_tmp = "msvc_not_found",
|
||||
msvc_lib_path = "vc_installation_error_arm.bat",
|
||||
msvc_link_path = "vc_installation_error_arm.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm.bat",
|
||||
"ml": "vc_installation_error_arm.bat",
|
||||
"cpp": "vc_installation_error_arm.bat",
|
||||
"gcc": "vc_installation_error_arm.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm.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 = "msvc_x64_arm",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-x64_arm_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-x64_arm_windows",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-arm64_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_arm64",
|
||||
toolchain_identifier = "msvc_arm64",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_arm64",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM64"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM64"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm64.bat",
|
||||
msvc_env_include = "msvc_not_found",
|
||||
msvc_env_lib = "msvc_not_found",
|
||||
msvc_env_path = "msvc_not_found",
|
||||
msvc_env_tmp = "msvc_not_found",
|
||||
msvc_lib_path = "vc_installation_error_arm64.bat",
|
||||
msvc_link_path = "vc_installation_error_arm64.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm64.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm64.bat",
|
||||
"ml": "vc_installation_error_arm64.bat",
|
||||
"cpp": "vc_installation_error_arm64.bat",
|
||||
"gcc": "vc_installation_error_arm64.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm64.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 = "msvc_arm64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-arm64_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-arm64_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",
|
||||
archiver_flags = ["/MACHINE:X64"],
|
||||
compiler = "clang-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
"C:\\tools\\LLVM\\lib\\clang\\18\\include",
|
||||
],
|
||||
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 = "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt;C:\\tools\\LLVM\\lib\\clang\\18\\include",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64;C:\\tools\\LLVM\\lib\\clang\\18\\lib\\windows",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/tools/LLVM/bin/llvm-lib.exe",
|
||||
msvc_link_path = "C:/tools/LLVM/bin/lld-link.exe",
|
||||
msvc_ml_path = "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/tools/LLVM/bin/llvm-lib.exe",
|
||||
"ml": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"cpp": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"gcc": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/tools/LLVM/bin/lld-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 = "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-arm64_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_arm64",
|
||||
toolchain_identifier = "clang_cl_arm64",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "clang_cl_arm64",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM64"],
|
||||
compiler = "clang-cl",
|
||||
cpu = "arm64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM64"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm64.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 = "vc_installation_error_arm64.bat",
|
||||
msvc_link_path = "vc_installation_error_arm64.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm64.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "aarch64-pc-windows-msvc",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm64.bat",
|
||||
"ml": "vc_installation_error_arm64.bat",
|
||||
"cpp": "vc_installation_error_arm64.bat",
|
||||
"gcc": "vc_installation_error_arm64.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm64.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_arm64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-arm64_windows-clang-cl",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:clang-cl",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-arm64_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:armv7",
|
||||
"@platforms//os:android",
|
||||
],
|
||||
toolchain = ":cc-compiler-armeabi-v7a",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
@@ -0,0 +1,82 @@
|
||||
# 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 = "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 = "llvm-profdata", 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],
|
||||
)
|
||||
@@ -0,0 +1,7 @@
|
||||
This file is generated by cc_configure and contains builtin include directories
|
||||
that clang-cl 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.
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
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.
|
||||
|
||||
|
||||
1442
third_party/xla/third_party/tsl/tools/toolchains/win2022/20241118/windows_cc_toolchain_config.bzl
vendored
Normal file
1442
third_party/xla/third_party/tsl/tools/toolchains/win2022/20241118/windows_cc_toolchain_config.bzl
vendored
Normal file
File diff suppressed because it is too large
Load Diff
37
third_party/xla/third_party/tsl/tools/toolchains/win2022/BUILD
vendored
Normal file
37
third_party/xla/third_party/tsl/tools/toolchains/win2022/BUILD
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
licenses(["restricted"])
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
java_runtime(
|
||||
name = "windows_jdk8",
|
||||
srcs = [],
|
||||
java_home = "C:/openjdk",
|
||||
)
|
||||
|
||||
# Register a Windows 2022 (Clang) platform.
|
||||
# Note that while this does support RBE, the current pool size is tiny,
|
||||
# and this platform is meant to be used as a non-RBE one, for now.
|
||||
platform(
|
||||
name = "windows_ltsc2022_clang",
|
||||
constraint_values = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:clang-cl",
|
||||
],
|
||||
remote_execution_properties = """
|
||||
properties:{
|
||||
name: "container-image"
|
||||
value: "docker://gcr.io/tensorflow-testing/tf-win2022@sha256:915cb093630432c38b028f56bd31116a5559ebbc688d427b6092d86828ae03bc"
|
||||
}
|
||||
properties:{
|
||||
name: "OSFamily"
|
||||
value: "Windows"
|
||||
}
|
||||
properties:{
|
||||
name: "Pool" value: "win2022"
|
||||
}
|
||||
properties:{
|
||||
name: "dockerNetwork" value: "off"
|
||||
}
|
||||
""",
|
||||
)
|
||||
647
third_party/xla/tools/toolchains/win2022/20241118/BUILD
vendored
Normal file
647
third_party/xla/tools/toolchains/win2022/20241118/BUILD
vendored
Normal file
@@ -0,0 +1,647 @@
|
||||
# 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.
|
||||
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
|
||||
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")
|
||||
load(":windows_cc_toolchain_config.bzl", "cc_toolchain_config")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
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_x86_windows|msvc-cl": ":cc-compiler-x64_x86_windows",
|
||||
"x64_arm_windows|msvc-cl": ":cc-compiler-x64_arm_windows",
|
||||
"x64_arm64_windows|msvc-cl": ":cc-compiler-arm64_windows",
|
||||
"arm64_windows|msvc-cl": ":cc-compiler-arm64_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",
|
||||
"x64_x86_windows": ":cc-compiler-x64_x86_windows",
|
||||
"x64_arm_windows": ":cc-compiler-x64_arm_windows",
|
||||
"x64_arm64_windows": ":cc-compiler-arm64_windows",
|
||||
"arm64_windows": ":cc-compiler-arm64_windows",
|
||||
"x64_arm64_windows|clang-cl": ":cc-compiler-arm64_windows-clang-cl",
|
||||
"arm64_windows|clang-cl": ":cc-compiler-arm64_windows-clang-cl",
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
archiver_flags = ["/MACHINE:X64"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/lib.exe",
|
||||
msvc_link_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/link.exe",
|
||||
msvc_ml_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/ml64.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/lib.exe",
|
||||
"ml": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/ml64.exe",
|
||||
"cpp": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
"gcc": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x64/cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/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_x86_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_x86",
|
||||
toolchain_identifier = "msvc_x64_x86",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_x64_x86",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:X86"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
],
|
||||
dbg_mode_debug_flag = "/DEBUG:FULL",
|
||||
default_link_flags = ["/MACHINE:X86"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG:FASTLINK",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x86;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x86",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x86;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/lib.exe",
|
||||
msvc_link_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/link.exe",
|
||||
msvc_ml_path = "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/ml.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/lib.exe",
|
||||
"ml": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/ml.exe",
|
||||
"cpp": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
"gcc": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/HostX64/x86/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_x86",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-x64_x86_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:x86_32",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-x64_x86_windows",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-x64_arm_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_arm",
|
||||
toolchain_identifier = "msvc_x64_arm",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_x64_arm",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm.bat",
|
||||
msvc_env_include = "msvc_not_found",
|
||||
msvc_env_lib = "msvc_not_found",
|
||||
msvc_env_path = "msvc_not_found",
|
||||
msvc_env_tmp = "msvc_not_found",
|
||||
msvc_lib_path = "vc_installation_error_arm.bat",
|
||||
msvc_link_path = "vc_installation_error_arm.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm.bat",
|
||||
"ml": "vc_installation_error_arm.bat",
|
||||
"cpp": "vc_installation_error_arm.bat",
|
||||
"gcc": "vc_installation_error_arm.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm.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 = "msvc_x64_arm",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-x64_arm_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-x64_arm_windows",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-arm64_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_arm64",
|
||||
toolchain_identifier = "msvc_arm64",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "msvc_arm64",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM64"],
|
||||
compiler = "msvc-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM64"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm64.bat",
|
||||
msvc_env_include = "msvc_not_found",
|
||||
msvc_env_lib = "msvc_not_found",
|
||||
msvc_env_path = "msvc_not_found",
|
||||
msvc_env_tmp = "msvc_not_found",
|
||||
msvc_lib_path = "vc_installation_error_arm64.bat",
|
||||
msvc_link_path = "vc_installation_error_arm64.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm64.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm64.bat",
|
||||
"ml": "vc_installation_error_arm64.bat",
|
||||
"cpp": "vc_installation_error_arm64.bat",
|
||||
"gcc": "vc_installation_error_arm64.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm64.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 = "msvc_arm64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-arm64_windows",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-arm64_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",
|
||||
archiver_flags = ["/MACHINE:X64"],
|
||||
compiler = "clang-cl",
|
||||
cpu = "x64_windows",
|
||||
cxx_builtin_include_directories = [
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include",
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt",
|
||||
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt",
|
||||
"C:\\tools\\LLVM\\lib\\clang\\18\\include",
|
||||
],
|
||||
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 = "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
msvc_env_include = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\include;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include;C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt;C:\\tools\\LLVM\\lib\\clang\\18\\include",
|
||||
msvc_env_lib = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\lib\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64;C:\\tools\\LLVM\\lib\\clang\\18\\lib\\windows",
|
||||
msvc_env_path = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\\x64;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\\\MSBuild\\Current\\Bin\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\;;C:\\Windows\\system32;C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VC\\Linux\\bin\\ConnectionManagerExe",
|
||||
msvc_env_tmp = "C:\\TMP",
|
||||
msvc_lib_path = "C:/tools/LLVM/bin/llvm-lib.exe",
|
||||
msvc_link_path = "C:/tools/LLVM/bin/lld-link.exe",
|
||||
msvc_ml_path = "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
supports_parse_showincludes = True,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "C:/tools/LLVM/bin/llvm-lib.exe",
|
||||
"ml": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"cpp": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"gcc": "C:/tools/LLVM/bin/clang-cl.exe",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "C:/tools/LLVM/bin/lld-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 = "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-arm64_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_arm64",
|
||||
toolchain_identifier = "clang_cl_arm64",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "clang_cl_arm64",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
archiver_flags = ["/MACHINE:ARM64"],
|
||||
compiler = "clang-cl",
|
||||
cpu = "arm64_windows",
|
||||
cxx_builtin_include_directories = [],
|
||||
dbg_mode_debug_flag = "/DEBUG",
|
||||
default_link_flags = ["/MACHINE:ARM64"],
|
||||
fastbuild_mode_debug_flag = "/DEBUG",
|
||||
host_system_name = "local",
|
||||
msvc_cl_path = "vc_installation_error_arm64.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 = "vc_installation_error_arm64.bat",
|
||||
msvc_link_path = "vc_installation_error_arm64.bat",
|
||||
msvc_ml_path = "vc_installation_error_arm64.bat",
|
||||
supports_parse_showincludes = False,
|
||||
target_libc = "msvcrt",
|
||||
target_system_name = "aarch64-pc-windows-msvc",
|
||||
tool_paths = {
|
||||
"ar": "vc_installation_error_arm64.bat",
|
||||
"ml": "vc_installation_error_arm64.bat",
|
||||
"cpp": "vc_installation_error_arm64.bat",
|
||||
"gcc": "vc_installation_error_arm64.bat",
|
||||
"gcov": "wrapper/bin/msvc_nop.bat",
|
||||
"ld": "vc_installation_error_arm64.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_arm64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-arm64_windows-clang-cl",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:clang-cl",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//cpu:arm64",
|
||||
"@platforms//os:windows",
|
||||
],
|
||||
toolchain = ":cc-compiler-arm64_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:armv7",
|
||||
"@platforms//os:android",
|
||||
],
|
||||
toolchain = ":cc-compiler-armeabi-v7a",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
82
third_party/xla/tools/toolchains/win2022/20241118/armeabi_cc_toolchain_config.bzl
vendored
Normal file
82
third_party/xla/tools/toolchains/win2022/20241118/armeabi_cc_toolchain_config.bzl
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
# 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 = "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 = "llvm-profdata", 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],
|
||||
)
|
||||
7
third_party/xla/tools/toolchains/win2022/20241118/builtin_include_directory_paths_clangcl
vendored
Normal file
7
third_party/xla/tools/toolchains/win2022/20241118/builtin_include_directory_paths_clangcl
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
This file is generated by cc_configure and contains builtin include directories
|
||||
that clang-cl 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.
|
||||
|
||||
|
||||
7
third_party/xla/tools/toolchains/win2022/20241118/builtin_include_directory_paths_msvc
vendored
Normal file
7
third_party/xla/tools/toolchains/win2022/20241118/builtin_include_directory_paths_msvc
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
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.
|
||||
|
||||
|
||||
1442
third_party/xla/tools/toolchains/win2022/20241118/windows_cc_toolchain_config.bzl
vendored
Normal file
1442
third_party/xla/tools/toolchains/win2022/20241118/windows_cc_toolchain_config.bzl
vendored
Normal file
File diff suppressed because it is too large
Load Diff
37
third_party/xla/tools/toolchains/win2022/BUILD
vendored
Normal file
37
third_party/xla/tools/toolchains/win2022/BUILD
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
licenses(["restricted"])
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
java_runtime(
|
||||
name = "windows_jdk8",
|
||||
srcs = [],
|
||||
java_home = "C:/openjdk",
|
||||
)
|
||||
|
||||
# Register a Windows 2022 (Clang) platform.
|
||||
# Note that while this does support RBE, the current pool size is tiny,
|
||||
# and this platform is meant to be used as a non-RBE one, for now.
|
||||
platform(
|
||||
name = "windows_ltsc2022_clang",
|
||||
constraint_values = [
|
||||
"@platforms//cpu:x86_64",
|
||||
"@platforms//os:windows",
|
||||
"@bazel_tools//tools/cpp:clang-cl",
|
||||
],
|
||||
remote_execution_properties = """
|
||||
properties:{
|
||||
name: "container-image"
|
||||
value: "docker://gcr.io/tensorflow-testing/tf-win2022@sha256:915cb093630432c38b028f56bd31116a5559ebbc688d427b6092d86828ae03bc"
|
||||
}
|
||||
properties:{
|
||||
name: "OSFamily"
|
||||
value: "Windows"
|
||||
}
|
||||
properties:{
|
||||
name: "Pool" value: "win2022"
|
||||
}
|
||||
properties:{
|
||||
name: "dockerNetwork" value: "off"
|
||||
}
|
||||
""",
|
||||
)
|
||||
Reference in New Issue
Block a user