Skip to content

Commit

Permalink
Explicitly specify compilers on macOS. (#9849)
Browse files Browse the repository at this point in the history
  - There is a difference between the default include directories used by `gcc/g++/clang/clang++` vs the system default compiler targets `(cc/c++`).

    Always specify the compilers explicitly so OpenModelica knows the actual functional compilers to use for simulation code.
  • Loading branch information
mahge committed Dec 4, 2022
1 parent 8a45f21 commit 14b2673
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .CI/cmake/Jenkinsfile.cmake.macos.gcc
Expand Up @@ -38,6 +38,10 @@ pipeline {
// Look in /opt/local first to prefer the macports libraries
// over others in the system.
+ " -DCMAKE_PREFIX_PATH=/opt/local"
// Always specify the compilers explicilty for macOS
+ " -DCMAKE_C_COMPILER=gcc"
+ " -DCMAKE_CXX_COMPILER=g++"
+ " -DCMAKE_Fortran_COMPILER=gfortran"
)
sh "build/bin/omc --version"
// Create a product build package
Expand Down
4 changes: 4 additions & 0 deletions Jenkinsfile
Expand Up @@ -165,6 +165,10 @@ pipeline {
// Look in /opt/local first to prefer the macports libraries
// over others in the system.
+ " -DCMAKE_PREFIX_PATH=/opt/local"
// Always specify the compilers explicilty for macOS
+ " -DCMAKE_C_COMPILER=gcc"
+ " -DCMAKE_CXX_COMPILER=g++"
+ " -DCMAKE_Fortran_COMPILER=gfortran"
)
sh "build/bin/omc --version"
}
Expand Down

0 comments on commit 14b2673

Please sign in to comment.