Skip to content

Commit 62dc670

Browse files
More polishing
1 parent c82168c commit 62dc670

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

sycl-jit/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if (NOT WIN32 AND NOT CYGWIN)
1919
endif(SYCL_JIT_ENABLE_WERROR)
2020
endif()
2121

22+
2223
add_subdirectory(jit-compiler)
2324
add_subdirectory(passes)
2425

sycl-jit/jit-compiler/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ add_custom_command(
1313
OUTPUT ${SYCL_JIT_RESOURCE_CPP}
1414
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/utils/generate.py --toolchain-dir ${CMAKE_BINARY_DIR} --output ${SYCL_JIT_RESOURCE_CPP} --prefix ${SYCL_JIT_VIRTUAL_TOOLCHAIN_ROOT}
1515
DEPENDS
16-
sycl-headers
16+
sycl-headers # include/sycl
17+
libclc # lib/clc
18+
clang # lib/clang
1719
# TODO: libdevice
1820
${CMAKE_CURRENT_SOURCE_DIR}/utils/generate.py
1921
)
2022

2123
# We use C23/C++26's `#embed` to implement this resource creation, and "current"
2224
# CMAKE_CXX_COMPILER might not have support for it. As such, use freshly built
2325
# `clang++` instead.
24-
set(SYCL_JIT_RESOURCE_CXX_FLAGS -O2 -Wno-c23-extensions -std=c++17)
25-
2626
if (WIN32)
2727
set(clang_exe ${CMAKE_BINARY_DIR}/bin/clang-cl.exe)
2828
set(SYCL_JIT_RESOURCE_CXX_FLAGS /O2 /std:c++17 /W0)
@@ -43,8 +43,6 @@ add_custom_command(
4343
DEPENDS
4444
${SYCL_JIT_RESOURCE_CPP}
4545
${CMAKE_CURRENT_SOURCE_DIR}/include/Resource.h
46-
clang
47-
libclc
4846
)
4947

5048
add_llvm_library(sycl-jit

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
#include <array>
5353
#include <sstream>
5454

55-
#include <iostream>
56-
5755
using namespace clang;
5856
using namespace clang::tooling;
5957
using namespace clang::driver;
@@ -203,10 +201,6 @@ class SYCLToolchain {
203201
FileManager *Files,
204202
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
205203
DiagnosticConsumer *DiagConsumer) override {
206-
for (auto &arg : Invocation->getCC1CommandLine())
207-
std::cout << " " << arg;
208-
std::cout << std::endl;
209-
210204
// Create a compiler instance to handle the actual work.
211205
CompilerInstance Compiler(std::move(Invocation),
212206
std::move(PCHContainerOps));
@@ -320,11 +314,6 @@ createCommandLine(const InputArgList &UserArgList, BinaryFormat Format,
320314
DerivedArgList DAL{UserArgList};
321315
const auto &OptTable = getDriverOptTable();
322316
DAL.AddFlagArg(nullptr, OptTable.getOption(OPT_fsycl_device_only));
323-
// TODO: Is this needed?
324-
DAL.AddJoinedArg(nullptr, OptTable.getOption(OPT_resource_dir_EQ),
325-
(jit_compiler::ToolchainPrefix + "/lib/clang/" +
326-
Twine(CLANG_VERSION_MAJOR))
327-
.str());
328317
// User args may contain options not intended for the frontend, but we can't
329318
// claim them here to tell the driver they're used later. Hence, suppress the
330319
// unused argument warning.

0 commit comments

Comments
 (0)