# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/openshadinglanguage/hotfix-llvm-vfs.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- oslc: /usr/src/t2-src/src.clang.260319.214406.551988/llvm-project-22.1.1.src/clang/lib/Frontend/CompilerInstance.cpp:387: void clang::CompilerInstance::createFileManager(): Assertion `VFS && "CompilerInstance needs a VFS for creating FileManager"' failed. --- ./src/liboslcomp/oslcomp.cpp.vanilla 2026-03-19 23:09:02.594607376 +0100 +++ ./src/liboslcomp/oslcomp.cpp 2026-03-19 23:22:22.438430445 +0100 @@ -200,6 +200,10 @@ inst.setTarget(target); +#if OSL_LLVM_VERSION >= 220 + inst.setVirtualFileSystem(llvm::vfs::getRealFileSystem()); +#endif + inst.createFileManager(); #if OSL_LLVM_VERSION >= 220 inst.createSourceManager();