mirror of
https://github.com/tensorflow/tensorflow.git
synced 2026-09-28 05:13:36 +08:00
Allow to download clang and use clang for CPU builds.
Previously we only allowed to download clang when doing GPU builds. The added skylark files use bazel's autoconf scripts, which were only added in 0.10.0. To provide nice error message for older versions of bazel (i.e. 'version is less than 0.10' vs 'can't load @bazel_tools/cpp/...'), we move the bazel version check into WORKSPACE file from workspace.bzl. PiperOrigin-RevId: 190050798
This commit is contained in:
committed by
TensorFlower Gardener
parent
f9ccb89134
commit
9e651e4571
+4
-1
@@ -27,11 +27,14 @@ build --define framework_shared_object=true
|
||||
build:mkl --define=using_mkl=true
|
||||
build:mkl -c opt
|
||||
|
||||
build:download_clang --crosstool_top=@local_config_download_clang//:toolchain
|
||||
build:download_clang --define=using_clang=true
|
||||
|
||||
build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
|
||||
build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
|
||||
|
||||
build:cuda_clang --crosstool_top=@local_config_cuda//crosstool:toolchain
|
||||
build:cuda_clang --define=using_cuda=true --define=using_cuda_clang=true
|
||||
build:cuda_clang --define=using_cuda=true --define=using_cuda_clang=true --define=using_clang=true
|
||||
|
||||
build:win-cuda --define=using_cuda=true --define=using_cuda_nvcc=true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user