diff options
author | 2018-08-02 04:58:01 -0700 | |
---|---|---|
committer | 2018-08-02 05:02:16 -0700 | |
commit | cfccb2ad59e2f22055daf5c9de6f1ca0586c9643 (patch) | |
tree | 47506effcbdaa61d79c1a67095f023515a1fdfa8 /third_party/clang_toolchain/cc_configure_clang.bzl | |
parent | 03061e4cbfc8128e632536eee0af1ebad922b5ba (diff) |
Format .bzl files in clang_toolchain
PiperOrigin-RevId: 207081431
Diffstat (limited to 'third_party/clang_toolchain/cc_configure_clang.bzl')
-rw-r--r-- | third_party/clang_toolchain/cc_configure_clang.bzl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/third_party/clang_toolchain/cc_configure_clang.bzl b/third_party/clang_toolchain/cc_configure_clang.bzl index 1181110ea9..0778c43c53 100644 --- a/third_party/clang_toolchain/cc_configure_clang.bzl +++ b/third_party/clang_toolchain/cc_configure_clang.bzl @@ -7,16 +7,16 @@ _TF_DOWNLOAD_CLANG = "TF_DOWNLOAD_CLANG" _TF_NEED_CUDA = "TF_NEED_CUDA" def _cc_clang_autoconf(repo_ctx): - if repo_ctx.os.environ.get(_TF_DOWNLOAD_CLANG) != "1": - return - if repo_ctx.os.environ.get(_TF_NEED_CUDA) == "1": - # Clang is handled separately for CUDA configs. - # See cuda_configure.bzl for more details. - return + if repo_ctx.os.environ.get(_TF_DOWNLOAD_CLANG) != "1": + return + if repo_ctx.os.environ.get(_TF_NEED_CUDA) == "1": + # Clang is handled separately for CUDA configs. + # See cuda_configure.bzl for more details. + return - download_clang(repo_ctx, out_folder='extra_tools') - overriden_tools = {'gcc': 'extra_tools/bin/clang'} - cc_autoconf_impl(repo_ctx, overriden_tools) + download_clang(repo_ctx, out_folder = "extra_tools") + overriden_tools = {"gcc": "extra_tools/bin/clang"} + cc_autoconf_impl(repo_ctx, overriden_tools) cc_download_clang_toolchain = repository_rule( environ = [ |