aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gpus
diff options
context:
space:
mode:
authorGravatar Ilya Biryukov <ibiryukov@google.com>2018-01-09 05:27:43 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-09 05:31:31 -0800
commit14fa431da0b7fd69ccf7bf4a60172a5745c1773c (patch)
treef1910b3ecbb72a5c34e7f20850d1ce4a6a129253 /third_party/gpus
parent3a0f98cf806c612e6895dd26f706c7c18efbac1b (diff)
Don't pass '-no-canonical-prefixes' when collecting builtin includes.
It matches the way bazel's autoconf works and seems to be the right thing to do. This change should fix #14380. PiperOrigin-RevId: 181305871
Diffstat (limited to 'third_party/gpus')
-rw-r--r--third_party/gpus/cuda_configure.bzl6
1 files changed, 1 insertions, 5 deletions
diff --git a/third_party/gpus/cuda_configure.bzl b/third_party/gpus/cuda_configure.bzl
index 5f1c42dbe4..c09bb222e8 100644
--- a/third_party/gpus/cuda_configure.bzl
+++ b/third_party/gpus/cuda_configure.bzl
@@ -110,11 +110,7 @@ def _get_cxx_inc_directories_impl(repository_ctx, cc, lang_is_cpp):
lang = "c++"
else:
lang = "c"
- # TODO: We pass -no-canonical-prefixes here to match the compiler flags,
- # but in cuda_clang CROSSTOOL file that is a `feature` and we should
- # handle the case when it's disabled and no flag is passed
- result = repository_ctx.execute([cc, "-no-canonical-prefixes",
- "-E", "-x" + lang, "-", "-v"])
+ result = repository_ctx.execute([cc, "-E", "-x" + lang, "-", "-v"])
index1 = result.stderr.find(_INC_DIR_MARKER_BEGIN)
if index1 == -1:
return []