SWDEV-384013 - Print link options being passed to compiler with AMD_LOG_LEVEL

Change-Id: I556ed434587cff07a634796da51dcbb9ae78ef21
This commit is contained in:
Jatin Chaudhary
2023-05-15 11:39:06 +01:00
committed by Jatin Jaikishan Chaudhary
orang tua a07e38be2f
melakukan 8753db5446
+10
Melihat File
@@ -646,6 +646,16 @@ bool RTCLinkProgram::LinkComplete(void** bin_out, size_t* size_out) {
std::vector<std::string> exe_options = getLinkOptions(link_args_);
exe_options.push_back("-O3");
LogPrintfInfo("Exe options forwarded to compiler: %s",
[&]() {
std::string ret;
for (const auto& i : exe_options) {
ret += i;
ret += " ";
}
return ret;
}()
.c_str());
if (!createExecutable(exec_input_, isa_, exe_options, build_log_, executable_)) {
LogError("Error in hiprtc: unable to create exectuable");
return false;