Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into pullrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenModelica-Hudson committed Apr 3, 2019
2 parents 83ebb9b + 3868c48 commit a9c9afa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Expand Up @@ -23,7 +23,7 @@ pipeline {
QTDIR = "/usr/lib/qt4"
}
steps {
buildOMC('gcc', 'g++')
buildOMC('gcc', 'g++', '')
stash name: 'omc-gcc', includes: 'build/**, **/config.status'
}
}
Expand All @@ -36,7 +36,7 @@ pipeline {
}
}
steps {
buildOMC('clang', 'clang++')
buildOMC('clang', 'clang++', '--without-hwloc')
stash name: 'omc-clang', includes: 'build/**, **/config.status'
}
}
Expand Down Expand Up @@ -507,11 +507,11 @@ void makeLibsAndCache(libs='core') {
sh "make -j${numLogicalCPU()} --output-sync omlibrary-${libs} ReferenceFiles"
}

void buildOMC(CC, CXX) {
void buildOMC(CC, CXX, extraFlags) {
standardSetup()
sh 'autoconf'
// Note: Do not use -march=native since we might use an incompatible machine in later stages
sh "./configure CC='${CC}' CXX='${CXX}' FC=gfortran CFLAGS=-Os --with-cppruntime --without-omc --without-omlibrary --with-omniORB --enable-modelica3d"
sh "./configure CC='${CC}' CXX='${CXX}' FC=gfortran CFLAGS=-Os --with-cppruntime --without-omc --without-omlibrary --with-omniORB --enable-modelica3d ${extraFlags}"
sh "make -j${numPhysicalCPU()} --output-sync omc omc-diff"
sh 'find build/lib/*/omc/ -name "*.so" -exec strip {} ";"'
}
Expand Down
2 changes: 1 addition & 1 deletion OMCompiler
Submodule OMCompiler updated 1 files
+11 −7 configure.ac
2 changes: 1 addition & 1 deletion OMSimulator

0 comments on commit a9c9afa

Please sign in to comment.