Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for clang OpenMP flags not working with g++
- Loading branch information
Showing
7 changed files
with
2 additions
and
7 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
openmodelica/cppruntime/libraries/msl32/ModelTestingDefaults.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
runScript(getEnvironmentVar("OMLIBRARYCOMMON")+"/ModelTestingDefaults.mos"); | ||
simulationRuntime := OpenModelicaModelTesting.SimulationRuntime.Cpp; | ||
setCXXCompiler(if regexBool(getCXXCompiler(),"clang++") then "g++" else getCXXCompiler()); | ||
// Cannot change to g++ -fopenmp=libiomp5 just like that | ||
// setCXXCompiler(if regexBool(getCXXCompiler(),"clang++") then "g++" else getCXXCompiler()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters