Skip to content

Commit

Permalink
Add absolute path to compiler sources
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 12, 2015
1 parent 6ca9268 commit 3a9c670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openmodelica/bootstrapping/LoadCompilerSources.mos
Expand Up @@ -2,7 +2,7 @@

// "FrontEnd";
if true then /* Suppress output */
prefixPath := "../../../OMCompiler/Compiler/";
prefixPath := getEnvironmentVar("OMCOMPILERSOURCES")+"/";
setCommandLineOptions("+g=MetaModelica");
files := {
prefixPath + "FrontEnd/Absyn.mo",
Expand Down
2 changes: 1 addition & 1 deletion openmodelica/bootstrapping/SusanTest.mos
Expand Up @@ -7,7 +7,7 @@

setCommandLineOptions({"+g=MetaModelica","+d=rml,noevalfunc"});
echo(false);
prefixPath := "../../../OMCompiler/Compiler/";
prefixPath := getEnvironmentVar("OMCOMPILERSOURCES") + "/";
echo(true);
loadFile(prefixPath + "FrontEnd/Absyn.mo");
getErrorString();
Expand Down
1 change: 1 addition & 0 deletions rtest
Expand Up @@ -17,6 +17,7 @@ if ($cwd =~ m/(.*)testsuite\/(.+)$/) {
$ENV{'OPENMODELICAHOME'} = $OPENMODELICAHOME;
$ENV{'REFERENCEFILES'} = "$1testsuite/ReferenceFiles";
$ENV{'OMLIBRARYCOMMON'} = "$1testsuite/simulation/libraries/common";
$ENV{'OMCOMPILERSOURCES'} = "$1OMCompiler/Compiler";
} else {
print "You must run rtest from the testsuite (was run from $cwd)\n";
exit 0;
Expand Down

0 comments on commit 3a9c670

Please sign in to comment.