Skip to content

Commit

Permalink
Add OMSimulator to default build since testsuite uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Apr 3, 2019
1 parent 3cd1488 commit 6d4ea79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Expand Up @@ -512,7 +512,8 @@ void buildOMC(CC, CXX, extraFlags) {
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 ${extraFlags}"
sh "make -j${numPhysicalCPU()} --output-sync omc omc-diff"
// OMSimulator requires HOME to be set and writeable
sh "HOME='${env.WORKSPACE}' make -j${numPhysicalCPU()} --output-sync omc omc-diff omsimulator"
sh 'find build/lib/*/omc/ -name "*.so" -exec strip {} ";"'
}

Expand All @@ -522,9 +523,8 @@ void buildGUI(stash) {
sh 'autoconf'
patchConfigStatus()
sh 'CONFIG=`./config.status --config` && ./configure `eval $CONFIG`'
sh 'touch omc omc-diff ReferenceFiles && make -q omc omc-diff ReferenceFiles' // Pretend we already built omc since we already did so
// OMSimulator requires HOME to be set and writeable
sh "HOME='${env.WORKSPACE}' make -j${numPhysicalCPU()} --output-sync" // Builds the GUI files
sh 'touch omc omc-diff ReferenceFiles omsimulator && make -q omc omc-diff ReferenceFiles omsimulator' // Pretend we already built omc since we already did so
sh "make -j${numPhysicalCPU()} --output-sync" // Builds the GUI files
}

void generateTemplates() {
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -3,7 +3,7 @@
all: @ALL_TARGETS@ @OMLIBRARY_TARGET@

.PRECIOUS: Makefile
.PHONY: omsimulator
.PHONY:

omc:
$(MAKE) -C OMCompiler @OMC_TARGET@
Expand Down

0 comments on commit 6d4ea79

Please sign in to comment.