mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/45826 Signed-off-by: Sam James <sam@gentoo.org>
24 lines
873 B
Diff
24 lines
873 B
Diff
LLVM-22 compatibility fixes.
|
|
Partially backports https://github.com/ROCm/llvm-project/commit/0216fcfc5d2a4f3384873f6e9ac70198760d5a52
|
|
--- a/src/comgr-compiler.cpp
|
|
+++ b/src/comgr-compiler.cpp
|
|
@@ -659,7 +659,7 @@ amd_comgr_status_t executeCommand(const Command &Job, raw_ostream &LogS,
|
|
|
|
std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
|
|
Clang->setVerboseOutputStream(LogS);
|
|
- Clang->setFileManager(new FileManager(Clang->getFileSystemOpts(), &FS));
|
|
+ Clang->setVirtualFileSystem(&FS);
|
|
if (!Argv.back()) {
|
|
Argv.pop_back();
|
|
}
|
|
@@ -909,8 +909,7 @@ amd_comgr_status_t AMDGPUCompiler::processFile(DataObject *Input,
|
|
}
|
|
|
|
// By default clang driver will ask CC1 to leak memory.
|
|
- Argv.push_back("-Xclang");
|
|
- Argv.push_back("-no-disable-free");
|
|
+ Argv.push_back("-disable-free=false");
|
|
|
|
Argv.push_back(InputFilePath);
|
|
|