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:
Ilya Biryukov
2018-03-22 05:36:18 -07:00
committed by TensorFlower Gardener
parent f9ccb89134
commit 9e651e4571
10 changed files with 104 additions and 65 deletions
+4 -1
View File
@@ -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