mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Don't fail to load runtime if running LLI from the current directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55fd998ce7
commit
a5637fc466
@ -154,7 +154,10 @@ void Interpreter::loadModule(const string &Filename) {
|
||||
return;
|
||||
}
|
||||
|
||||
string RuntimeLib = getCurrentExecutablePath() + "/RuntimeLib.bc";
|
||||
string RuntimeLib = getCurrentExecutablePath();
|
||||
if (!RuntimeLib.empty()) RuntimeLib += "/";
|
||||
RuntimeLib += "RuntimeLib.bc";
|
||||
|
||||
if (Module *SupportLib = ParseBytecodeFile(RuntimeLib, &ErrorMsg)) {
|
||||
if (LinkModules(CurMod, SupportLib, &ErrorMsg))
|
||||
cerr << "Error Linking runtime library into current module: "
|
||||
|
Loading…
Reference in New Issue
Block a user