Skip to content

Commit f2e0e53

Browse files
add libclc
1 parent 4cb6d54 commit f2e0e53

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sycl-jit/jit-compiler/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ add_custom_command(
3838
${SYCL_JIT_RESOURCE_CPP}
3939
${CMAKE_CURRENT_SOURCE_DIR}/include/Resource.h
4040
clang
41+
libclc
4142
)
4243

4344
add_llvm_library(sycl-jit

sycl-jit/jit-compiler/utils/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def process_dir(dir):
4141
{{"{args.prefix}{os.path.relpath(file_path, toolchain_dir).replace(os.sep, "/")}"}} ,
4242
[]() {{
4343
static const char data[] = {{
44-
#embed "{file_path}"
44+
#embed "{file_path}" if_empty(0)
4545
, 0}};
4646
return std::string_view(data);
4747
}}()
@@ -50,6 +50,7 @@ def process_dir(dir):
5050

5151
process_dir(os.path.join(args.toolchain_dir, "include/"))
5252
process_dir(os.path.join(args.toolchain_dir, "lib/clang/"))
53+
process_dir(os.path.join(args.toolchain_dir, "lib/clc/"))
5354

5455
out.write(
5556
f"""

0 commit comments

Comments
 (0)