From 14fa431da0b7fd69ccf7bf4a60172a5745c1773c Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Tue, 9 Jan 2018 05:27:43 -0800 Subject: 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 --- third_party/gpus/cuda_configure.bzl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'third_party/gpus') 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 [] -- cgit v1.2.3