Skip to content

Commit 6d4ea79

Browse files
committed
Add OMSimulator to default build since testsuite uses it
1 parent 3cd1488 commit 6d4ea79

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,8 @@ void buildOMC(CC, CXX, extraFlags) {
512512
sh 'autoconf'
513513
// Note: Do not use -march=native since we might use an incompatible machine in later stages
514514
sh "./configure CC='${CC}' CXX='${CXX}' FC=gfortran CFLAGS=-Os --with-cppruntime --without-omc --without-omlibrary --with-omniORB --enable-modelica3d ${extraFlags}"
515-
sh "make -j${numPhysicalCPU()} --output-sync omc omc-diff"
515+
// OMSimulator requires HOME to be set and writeable
516+
sh "HOME='${env.WORKSPACE}' make -j${numPhysicalCPU()} --output-sync omc omc-diff omsimulator"
516517
sh 'find build/lib/*/omc/ -name "*.so" -exec strip {} ";"'
517518
}
518519

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

530530
void generateTemplates() {

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
all: @ALL_TARGETS@ @OMLIBRARY_TARGET@
44

55
.PRECIOUS: Makefile
6-
.PHONY: omsimulator
6+
.PHONY:
77

88
omc:
99
$(MAKE) -C OMCompiler @OMC_TARGET@

0 commit comments

Comments
 (0)