Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 9e884a5

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
remove the output from cleaning, it might change
Belonging to [master]: - #2651 - OpenModelica/OpenModelica-testsuite#1032
1 parent c3a6587 commit 9e884a5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Compiler/Script/CevalScriptBackend.mo

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,10 @@ algorithm
35093509

35103510
isWindows := System.os() == "Windows_NT";
35113511

3512+
fmutmp := filenameprefix + ".fmutmp";
3513+
logfile := filenameprefix + ".log";
3514+
dir := fmutmp+"/sources/";
3515+
35123516
if Config.simCodeTarget() == "Cpp" then
35133517
System.removeDirectory("binaries");
35143518
for platform in platforms loop
@@ -3520,18 +3524,16 @@ algorithm
35203524
end if;
35213525
ExecStat.execStat("buildModelFMU: Generate C++ for platform " + platform);
35223526
end for;
3523-
System.systemCall("make -f " + filenameprefix + "_FMU.makefile clean");
3527+
if 0 <> System.systemCall("make -f " + filenameprefix + "_FMU.makefile clean", outFile=logfile) then
3528+
// do nothing
3529+
end if;
35243530
return;
35253531
end if;
35263532

35273533
CevalScript.compileModel(filenameprefix+"_FMU" , libs);
35283534

35293535
ExecStat.execStat("buildModelFMU: Generate the FMI files");
35303536

3531-
fmutmp := filenameprefix + ".fmutmp";
3532-
logfile := filenameprefix + ".log";
3533-
dir := fmutmp+"/sources/";
3534-
35353537
for platform in platforms loop
35363538
configureFMU(platform, fmutmp, System.realpath(fmutmp)+"/resources/"+System.stringReplace(listGet(Util.stringSplitAtChar(platform," "),1),"/","-")+".log", isWindows);
35373539
ExecStat.execStat("buildModelFMU: Generate platform " + platform);

0 commit comments

Comments
 (0)