@@ -100,6 +100,10 @@ class SYCLToolchain {
100
100
FileManager *Files,
101
101
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
102
102
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;
103
107
// Create a compiler instance to handle the actual work.
104
108
CompilerInstance Compiler (std::move (Invocation),
105
109
std::move (PCHContainerOps));
@@ -127,6 +131,7 @@ class SYCLToolchain {
127
131
std::vector<std::string> createCommandLine (const InputArgList &UserArgList,
128
132
BinaryFormat Format,
129
133
std::string_view SourceFilePath) {
134
+ std::cerr << __PRETTY_FUNCTION__ << std::endl;
130
135
DerivedArgList DAL{UserArgList};
131
136
const auto &OptTable = getDriverOptTable ();
132
137
DAL.AddFlagArg (nullptr , OptTable.getOption (OPT_fsycl_device_only));
@@ -163,6 +168,9 @@ class SYCLToolchain {
163
168
transform (ASL, std::back_inserter (CommandLine),
164
169
[](const char *AS) { return std::string{AS}; });
165
170
CommandLine.emplace_back (SourceFilePath);
171
+ for (auto &arg : CommandLine)
172
+ std::cout << " " << arg;
173
+ std::cout << std::endl;
166
174
return CommandLine;
167
175
}
168
176
@@ -177,6 +185,10 @@ class SYCLToolchain {
177
185
FileManager *Files,
178
186
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
179
187
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;
180
192
auto MainFilePath = Invocation->getFrontendOpts ().Inputs [0 ].getFile ();
181
193
auto MainFileBuffer = Files->getBufferForFile (MainFilePath);
182
194
assert (MainFileBuffer && " Can't get memory buffer for in-memory source?" );
@@ -450,6 +462,7 @@ Expected<ModuleUPtr> jit_compiler::compileDeviceCode(
450
462
ClangDiagnosticWrapper Wrapper (BuildLog, &DiagOpts);
451
463
452
464
bool AutoPCH = UserArgList.hasArg (OPT_auto_pch);
465
+ std::cerr << " AutoPCH: " << std::boolalpha << AutoPCH << std::endl;
453
466
454
467
if (SYCLToolchain::instance ().run (UserArgList, Format, SourceFile.Path , ELOA,
455
468
getInMemoryFS (SourceFile, IncludeFiles),
0 commit comments