@@ -100,6 +100,10 @@ class SYCLToolchain {
100100 FileManager *Files,
101101 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
102102 DiagnosticConsumer *DiagConsumer) override {
103+ std::cerr << __PRETTY_FUNCTION__ << std::endl;
104+ for (auto &arg : Invocation->getCC1CommandLine ())
105+ std::cout << " " << arg;
106+ std::cout << std::endl;
103107 // Create a compiler instance to handle the actual work.
104108 CompilerInstance Compiler (std::move (Invocation),
105109 std::move (PCHContainerOps));
@@ -127,6 +131,7 @@ class SYCLToolchain {
127131 std::vector<std::string> createCommandLine (const InputArgList &UserArgList,
128132 BinaryFormat Format,
129133 std::string_view SourceFilePath) {
134+ std::cerr << __PRETTY_FUNCTION__ << std::endl;
130135 DerivedArgList DAL{UserArgList};
131136 const auto &OptTable = getDriverOptTable ();
132137 DAL.AddFlagArg (nullptr , OptTable.getOption (OPT_fsycl_device_only));
@@ -163,6 +168,9 @@ class SYCLToolchain {
163168 transform (ASL, std::back_inserter (CommandLine),
164169 [](const char *AS) { return std::string{AS}; });
165170 CommandLine.emplace_back (SourceFilePath);
171+ for (auto &arg : CommandLine)
172+ std::cout << " " << arg;
173+ std::cout << std::endl;
166174 return CommandLine;
167175 }
168176
@@ -177,6 +185,10 @@ class SYCLToolchain {
177185 FileManager *Files,
178186 std::shared_ptr<PCHContainerOperations> PCHContainerOps,
179187 DiagnosticConsumer *DiagConsumer) override {
188+ std::cerr << __PRETTY_FUNCTION__ << std::endl;
189+ for (auto &arg : Invocation->getCC1CommandLine ())
190+ std::cout << " " << arg;
191+ std::cout << std::endl;
180192 auto MainFilePath = Invocation->getFrontendOpts ().Inputs [0 ].getFile ();
181193 auto MainFileBuffer = Files->getBufferForFile (MainFilePath);
182194 assert (MainFileBuffer && " Can't get memory buffer for in-memory source?" );
@@ -450,6 +462,7 @@ Expected<ModuleUPtr> jit_compiler::compileDeviceCode(
450462 ClangDiagnosticWrapper Wrapper (BuildLog, &DiagOpts);
451463
452464 bool AutoPCH = UserArgList.hasArg (OPT_auto_pch);
465+ std::cerr << " AutoPCH: " << std::boolalpha << AutoPCH << std::endl;
453466
454467 if (SYCLToolchain::instance ().run (UserArgList, Format, SourceFile.Path , ELOA,
455468 getInMemoryFS (SourceFile, IncludeFiles),
0 commit comments