Skip to content
Snippets Groups Projects
Verified Commit 781e10c2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Error out if “use_dll” is specified in Julia mode

parent fd9902e8
Branches
No related tags found
No related merge requests found
...@@ -496,6 +496,12 @@ main(int argc, char **argv) ...@@ -496,6 +496,12 @@ main(int argc, char **argv)
if (use_dll) if (use_dll)
mod_file->use_dll = true; mod_file->use_dll = true;
if (mod_file->use_dll && language == LanguageOutputType::julia)
{
cerr << "ERROR: `use_dll` option is not compatible with Julia" << endl;
exit(EXIT_FAILURE);
}
if (mod_file->use_dll) if (mod_file->use_dll)
ModelTree::initializeMEXCompilationWorkers(max(jthread::hardware_concurrency(), 1U)); ModelTree::initializeMEXCompilationWorkers(max(jthread::hardware_concurrency(), 1U));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment