You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
- this is until we fix PR: #2138
- compile also with -fno-ipa-pure-const
- link functions with -lOpenModelicaCompiler if MetaModelica flag is on
Belonging to [master]:
- #2654
Copy file name to clipboardExpand all lines: Compiler/Template/CodegenC.tpl
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5780,11 +5780,13 @@ case SIMCODE(modelInfo=MODELINFO(varInfo=varInfo as VARINFO(__)), delayedExps=DE
5780
5780
let libsPos2 = if dirExtra then libsStr // else ""
5781
5781
let ParModelicaExpLibs = if acceptParModelicaGrammar() then '-lParModelicaExpl -lOpenCL' // else ""
5782
5782
let ParModelicaAutoLibs = if Flags.isSet(Flags.PARMODAUTO) then '-lParModelicaAuto -ltbb -lpugixml -lboost_system' // else ""
5783
+
let ExtraStack = if boolOr(stringEq(makefileParams.platform, "win32"),stringEq(makefileParams.platform, "win64")) then '--stack,16777216,'
5783
5784
let extraCflags = match sopt case SOME(s as SIMULATION_SETTINGS(__)) then
5784
5785
match s.method case "dassljac" then "-D_OMC_JACOBIAN "
5785
5786
5786
5787
<<
5787
5788
# Makefile generated by OpenModelica
5789
+
# Platform: <%makefileParams.platform%>
5788
5790
5789
5791
# Simulations use -O3 by default
5790
5792
CC=<%if boolOr(Flags.isSet(Flags.PARMODAUTO),acceptParModelicaGrammar()) then 'g++' else '<%makefileParams.ccompiler%>'%>
@@ -5799,7 +5801,7 @@ case SIMCODE(modelInfo=MODELINFO(varInfo=varInfo as VARINFO(__)), delayedExps=DE
5799
5801
%>CPPFLAGS=<%makefileParams.includes ; separator=" "%> -I"<%makefileParams.omhome%>/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME<% if stringEq(Config.simCodeTarget(),"JavaScript") then " -DOMC_EMCC"%><% if Flags.isSet(Flags.OMC_RELOCATABLE_FUNCTIONS) then " -DOMC_GENERATE_RELOCATABLE_CODE"%> -DOMC_MODEL_PREFIX=<%modelNamePrefix(simCode)%> -DOMC_NUM_MIXED_SYSTEMS=<%varInfo.numMixedSystems%> -DOMC_NUM_LINEAR_SYSTEMS=<%varInfo.numLinearSystems%> -DOMC_NUM_NONLINEAR_SYSTEMS=<%varInfo.numNonLinearSystems%> -DOMC_NDELAY_EXPRESSIONS=<%maxDelayedIndex%> -DOMC_NVAR_STRING=<%varInfo.numStringAlgVars%>
5800
5802
LDFLAGS=<%
5801
5803
if stringEq(Config.simCodeTarget(),"JavaScript") then <<-L'<%makefileParams.omhome%>/lib/<%getTriple()%>/omc/emcc'-lblas-llapack-lexpat-lSimulationRuntimeC-sTOTAL_MEMORY=805306368-sOUTLINING_LIMIT=20000--pre-js$(OMC_EMCC_PRE_JS)>>
Copy file name to clipboardExpand all lines: Compiler/Template/CodegenCFunctions.tpl
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -237,9 +237,12 @@ match fnCode
237
237
case FUNCTIONCODE(makefileParams=MAKEFILE_PARAMS(__)) then
238
238
let libsStr = (makefileParams.libs ;separator=" ")
239
239
let ParModelicaExpLibs = if acceptParModelicaGrammar() then '-lParModelicaExpl -lOpenCL' // else ""
240
+
let ExtraStack = if boolOr(stringEq(makefileParams.platform, "win32"),stringEq(makefileParams.platform, "win64")) then '--stack,16777216,'
241
+
let WinMingwExtraLibs = if boolAnd(acceptMetaModelicaGrammar(), boolOr(stringEq(makefileParams.platform, "win32"),stringEq(makefileParams.platform, "win64"))) then '-lOpenModelicaCompiler'
240
242
241
243
<<
242
244
# Makefile generated by OpenModelica
245
+
# Platform: <%makefileParams.platform%>
243
246
244
247
# Dynamic loading uses -O0 by default
245
248
SIM_OR_DYNLOAD_OPT_LEVEL=-O0
@@ -253,7 +256,7 @@ case FUNCTIONCODE(makefileParams=MAKEFILE_PARAMS(__)) then
0 commit comments