Skip to content

Commit

Permalink
Add KINSOL driver to libraries linked by MARCO
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuttari committed Dec 22, 2024
1 parent cdf268e commit 431a672
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion clang/lib/Driver/ToolChains/CommonArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,11 @@ void tools::addMarcoLinkerArgs(const ToolChain &TC,
}

// Add the main simulation driver.
CmdArgs.push_back("-lMARCORuntimeSimulation");
if (staticBuild) {
CmdArgs.push_back("-lMARCORuntimeSimulation_static");
} else {
CmdArgs.push_back("-lMARCORuntimeSimulation");
}

// Add the libraries of the solver.
if (solver == "euler-forward") {
Expand All @@ -1377,6 +1381,10 @@ void tools::addMarcoLinkerArgs(const ToolChain &TC,
CmdArgs.push_back("-lMARCORuntimeSolverRungeKutta");
}

if (!staticBuild) {
CmdArgs.push_back("-lMARCORuntimeDriverKINSOL");
}

// Add the Modelica support library.
CmdArgs.push_back("-lMARCORuntimeSupport");

Expand Down

0 comments on commit 431a672

Please sign in to comment.