Skip to content

Commit bc6b1af

Browse files
[SYCL] Fix build issues for Debug configuration (#1151)
During the building x64 Debug configuration of Windows using scripts from buildbot folder, there were two issues: 1. OpenCL ICD Loader failed to build because of the missing OpenCL headers 2. Fatal error C1128: clang\lib\Sema\SemaTemplateDeduction.cpp : number of sections exceeded object file format limit: compile with /bigobj Signed-off-by: Dmitry Vodopyanov <[email protected]>
1 parent 3fe01fb commit bc6b1af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

buildbot/dependency.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def do_dependency(args):
7171
install_dir = os.path.join(args.obj_dir, "install")
7272
cmake_cmd = ["cmake", "-G", "Ninja",
7373
"-DCMAKE_INSTALL_PREFIX={}".format(install_dir),
74+
"-DOPENCL_ICD_LOADER_HEADERS_DIR={}".format(ocl_header_dir),
7475
".." ]
7576
subprocess.check_call(cmake_cmd, cwd=icd_build_dir)
7677

clang/lib/Sema/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (MSVC)
99
set_source_files_properties(SemaExprCXX.cpp PROPERTIES COMPILE_FLAGS /bigobj)
1010
set_source_files_properties(SemaSYCL.cpp PROPERTIES COMPILE_FLAGS /bigobj)
1111
set_source_files_properties(SemaTemplate.cpp PROPERTIES COMPILE_FLAGS /bigobj)
12+
set_source_files_properties(SemaTemplateDeduction.cpp PROPERTIES COMPILE_FLAGS /bigobj)
1213
endif()
1314

1415
clang_tablegen(OpenCLBuiltins.inc -gen-clang-opencl-builtins

0 commit comments

Comments
 (0)