Skip to content

Commit

Permalink
fix windows builds after runtime changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Apr 16, 2016
1 parent 0c33ef3 commit 2ac963a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Compiler/boot/Makefile.common
Expand Up @@ -34,12 +34,12 @@ PATCH_SOURCES=$(SED) -i 's/ = omc_assert_function/__attribute__((noreturn)) = om
PATCHES := $(patsubst %.patch.xz,%.patch,$(wildcard patches/*.patch.xz))

ifeq ($(BOOTSTRAP_STAGE_1),1)
OMCRUNTIMEAR=../runtime/libomcruntime-boot$(SHREXT)
OMCRUNTIMEAR=$(OMCRUNTIMEAR1)
OMPARSEAR=../../Parser/libomparse-boot.a
LOMPARSE=$(OMPARSEAR)
LCOMPILERRUNTIME=$(abspath $(OMCRUNTIMEAR))
else
OMCRUNTIMEAR=$(OMHOME)/$(LIB_OMC)/libomcruntime$(SHREXT)
OMCRUNTIMEAR=$(OMCRUNTIMEAR2)
OMPARSEAR=$(OMHOME)/$(LIB_OMC)/libomparse.a
LOMPARSE=-lomparse
LCOMPILERRUNTIME=-lomcruntime
Expand Down
2 changes: 2 additions & 0 deletions Compiler/boot/Makefile.in
Expand Up @@ -28,6 +28,8 @@ RPATH=@RPATH@
STATIC=@BOOTSTRAP_STATIC@
BOOTSTRAP_OMC=@OMBUILDDIR@/bin/omc
defaultMakefileTarget=Makefile
OMCRUNTIMEAR1=../runtime/libomcruntime-boot$(SHREXT)
OMCRUNTIMEAR2=$(OMHOME)/$(LIB_OMC)/libomcruntime$(SHREXT)


default: all
Expand Down
3 changes: 3 additions & 0 deletions Compiler/boot/Makefile.omdev.mingw
Expand Up @@ -31,6 +31,9 @@ RPATH=
BOOTSTRAP_OMC=$(OMBUILDDIR)/bin/omc.exe
defaultMakefileTarget=Makefile.omdev.mingw
LIB_OMC=lib/omc
OMCRUNTIMEAR1=../runtime/libomcruntime-boot.a
OMCRUNTIMEAR2=$(OMHOME)/$(LIB_OMC)/libomcruntime.a
LDFLAGS_SHARED_MAIN=-L"$(OMHOME)/$(LIB_OMC)" $(EXTRA_LD_FLAGS)

default: all

Expand Down
4 changes: 4 additions & 0 deletions Compiler/runtime/Makefile.common
Expand Up @@ -73,6 +73,10 @@ libomcruntime-boot.so : $(OMC_OBJ)
rm -f $@
$(CXX) -shared $(RPATH) -o $@ $(OMC_OBJ) $(LDFLAGS)

libomcruntime-boot.dll : $(OMC_OBJ)
rm -f $@
$(CXX) -shared $(RPATH) -o $@ $(OMC_OBJ) $(LDFLAGS)

omc_communication.cc : omc_communication.idl
$(IDL) omc_communication.idl
omc_communication.h: omc_communication.cc
Expand Down
2 changes: 1 addition & 1 deletion Compiler/runtime/settingsimpl.c
Expand Up @@ -74,7 +74,7 @@ static void stripbinpath(char *omhome)
#endif

/* Do not free or modify the returned variable of getInstallationDirectoryPath. It's part of the environment! */
#if defined(OPENMODELICA_BOOTSTRAPPING_STAGE_1)
#if defined(OPENMODELICA_BOOTSTRAPPING_STAGE_1) && !(defined(_MSC_VER) || defined(__MINGW32__))
const char* SettingsImpl__getInstallationDirectoryPath(void) {
return CONFIG_DEFAULT_OPENMODELICAHOME;
}
Expand Down

0 comments on commit 2ac963a

Please sign in to comment.