Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "SWDEV-365820 - Refactor build path" #91

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion rocclr/device/devprogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ bool Program::compileImplLC(const std::string& sourceCode,
driverOptions.push_back("-mwavefrontsize64");
}
driverOptions.push_back("-mcode-object-version=" + std::to_string(options->oVariables->LCCodeObjectVersion));

// Iterate through each source code and dump it into tmp
std::fstream f;
std::vector<std::string> headerFileNames(headers.size());
Expand Down Expand Up @@ -1426,6 +1426,13 @@ bool Program::initBuild(amd::option::Options* options) {
return false;
}

std::string targetID = device().isa().targetId();
#if defined(_WIN32)
// Replace special charaters that are not supported by Windows FS.
std::replace(targetID.begin(), targetID.end(), ':', '@');
#endif
options->setPerBuildInfo(targetID.c_str(), clBinary()->getEncryptCode(), true);

// Elf Binary setup
std::string outFileName;
bool tempFile = false;
Expand Down