Skip to content

Commit c71ec32

Browse files
authored
fixing the compilation issue as c++ linkage specification is added to… [compiler] (#2753)
1 parent 5c3d8cc commit c71ec32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

third_party/build_option/crosstool_sycl/cc_toolchain_config.bzl.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def _impl(ctx):
571571
flag_sets = [
572572
flag_set(
573573
actions = [
574-
ACTION_NAMES.c_compile,
574+
575575
ACTION_NAMES.cpp_compile,
576576
ACTION_NAMES.cpp_link_executable,
577577
ACTION_NAMES.cpp_link_dynamic_library,

third_party/build_option/sycl_configure.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def _sycl_autoconf_imp(repository_ctx):
382382
additional_linker_flags = []
383383
builtin_includes = []
384384

385+
builtin_includes += [find_sycl_root(repository_ctx) + "/include/sycl"]
385386
builtin_includes += [find_sycl_root(repository_ctx) + "/include"]
386387
builtin_includes += [find_sycl_root(repository_ctx) + "/lib/clang/12.0.0/include"]
387388
builtin_includes += [find_sycl_root(repository_ctx) + "/lib/clang/13.0.0/include"]

0 commit comments

Comments
 (0)