Generate dummy crosstool_wrapper_driver_is_not_gcc with cuda clang configuration so that it is possible to build bazel build @local_config_cuda//...

PiperOrigin-RevId: 169237265
This commit is contained in:
A. Unique TensorFlower 2017-09-19 07:17:16 -07:00 committed by TensorFlower Gardener
parent 5882ae35d3
commit e4223cbd75

View File

@ -982,6 +982,7 @@ def _create_local_cuda_repository(repository_ctx):
cuda_defines["%{clang_path}"] = cc
_tpl(repository_ctx, "crosstool:BUILD", {"%{linker_files}": ":empty"})
_tpl(repository_ctx, "crosstool:CROSSTOOL_clang", cuda_defines, out="crosstool/CROSSTOOL")
repository_ctx.file("crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc", "")
else:
nvcc_path = str(repository_ctx.path("%s/bin/nvcc%s" %
(cuda_config.cuda_toolkit_path,