Skip to content

Commit

Permalink
Update bootstrapping sources (#6842)
Browse files Browse the repository at this point in the history
* Remove the tarball
* We now have C-sources directly instead making patches easier
  • Loading branch information
sjoelund committed Nov 3, 2020
1 parent 0639cf1 commit 0a1f647
Show file tree
Hide file tree
Showing 775 changed files with 861,122 additions and 503 deletions.
1 change: 0 additions & 1 deletion OMCompiler/.gitignore
Expand Up @@ -78,7 +78,6 @@ Temporary Items
# =========================

build_cmake/
build/
.externalToolBuilders/OpenModelicaBuilder.launch
.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder.launch
.project
Expand Down
13 changes: 13 additions & 0 deletions OMCompiler/Compiler/Stubs/AbsynJLDumpTpl.mo
@@ -0,0 +1,13 @@
encapsulated package AbsynJLDumpTpl

function dump<Text,Program>
input Text txt;
input Program a_program;

output Text out_txt;
algorithm
out_txt := txt;
end dump;

annotation(__OpenModelica_Interface="frontend");
end AbsynJLDumpTpl;
28 changes: 28 additions & 0 deletions OMCompiler/Compiler/Stubs/Autoconf.mo
@@ -0,0 +1,28 @@
encapsulated package Autoconf

constant Boolean is64Bit = true;

constant String bstatic = "";
constant String bdynamic = "";
constant String configureCommandLine = "Manually created Makefiles for bootstrapping";
constant String os = "";
constant String make = "";
constant String exeExt = "";
constant String dllExt = "";
constant String ldflags_basic = "";

constant String ldflags_runtime = "";
constant String ldflags_runtime_sim = "";
constant String ldflags_runtime_fmu = "";

constant String platform = "";
constant String pathDelimiter = "/";
constant String groupDelimiter = ";";

constant String corbaLibs = "";
constant list<String> systemLibs = {};

constant String triple = "";

annotation(__OpenModelica_Interface="util");
end Autoconf;
42 changes: 42 additions & 0 deletions OMCompiler/Compiler/Stubs/CevalScriptOMSimulator.mo
@@ -0,0 +1,42 @@
/*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-2014, Open Source Modelica Consortium (OSMC),
* c/o Linköpings universitet, Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
* THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES
* RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3,
* ACCORDING TO RECIPIENTS CHOICE.
*
* The OpenModelica software and the Open Source Modelica
* Consortium (OSMC) Public License (OSMC-PL) are obtained
* from OSMC, either from the above address,
* from the URLs: http://www.ida.liu.se/projects/OpenModelica or
* http://www.openmodelica.org, and in the OpenModelica distribution.
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
*
* This program is distributed WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
*
* See the full OSMC Public License conditions for more details.
*
*/
encapsulated package CevalScriptOMSimulator

function ceval<Value>
input String inFunctionName;
input list<Value> inVals;
output Value outValue;
algorithm
fail();
end ceval;

annotation(__OpenModelica_Interface="backend");
end CevalScriptOMSimulator;
7 changes: 7 additions & 0 deletions OMCompiler/Compiler/Stubs/ExpandableArray.mo
@@ -0,0 +1,7 @@
encapsulated uniontype ExpandableArray<T>

record EXPANDABLE_ARRAY
end EXPANDABLE_ARRAY;

annotation(__OpenModelica_Interface="util");
end ExpandableArray;
9 changes: 9 additions & 0 deletions OMCompiler/Compiler/Stubs/FUnitCheck.mo
@@ -0,0 +1,9 @@
encapsulated package FUnitCheck

function checkUnits<A,B>
input output A a;
input B b;
end checkUnits;

annotation(__OpenModelica_Interface="frontend");
end FUnitCheck;
29 changes: 29 additions & 0 deletions OMCompiler/Compiler/Stubs/InstStateMachineUtil.mo
@@ -0,0 +1,29 @@
encapsulated package InstStateMachineUtil

import DAE;
type SMNodeToFlatSMGroupTable = Integer;

function getSMStatesInContext<A,B>
input A eqns;
input B inPrefix;
output list<DAE.ComponentRef> states = {};
output list<DAE.ComponentRef> initialStates = {};
end getSMStatesInContext;

function createSMNodeToFlatSMGroupTable<A>
input A inDae;
output SMNodeToFlatSMGroupTable smNodeToFlatSMGroup = 0;
end createSMNodeToFlatSMGroupTable;

function wrapSMCompsInFlatSMs<A,B>
input A inIH;
input B inDae1;
input B inDae2;
input SMNodeToFlatSMGroupTable smNodeToFlatSMGroup;
input list<DAE.ComponentRef> smInitialCrefs;
output B outDae1 = inDae1;
output B outDae2 = inDae2;
end wrapSMCompsInFlatSMs;

annotation(__OpenModelica_Interface="frontend");
end InstStateMachineUtil;
14 changes: 14 additions & 0 deletions OMCompiler/Compiler/Stubs/NFSCodeFlatten.mo
@@ -0,0 +1,14 @@
encapsulated package NFSCodeFlatten

function flattenCompleteProgram<Path,Program>
input output Program inProgram;
end flattenCompleteProgram;

function flattenClassInProgram<Path,Program>
input Path inPath;
input output Program inProgram;
output Integer dummy;
end flattenClassInProgram;

annotation(__OpenModelica_Interface="frontend");
end NFSCodeFlatten;
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Util/System.mo
Expand Up @@ -1276,7 +1276,7 @@ end fflush;

function updateUriMapping
input array<String> namesAndDirs;
external "C" OpenModelica_updateUriMapping(OpenModelica.threadData(), namesAndDirs) annotation(Documentation(info="<html>
external "C" OpenModelica_updateUriMapping(OpenModelica.threadData(), namesAndDirs) annotation(include="#include \"util/utility.h\"", Documentation(info="<html>
<p>Used to set the mapping from package names to directories, for loadResource. Part of the C runtime.</p>
<p>Odd indexes are names and even indexes are the corresponding directory.</p>
</html>"));
Expand Down
2 changes: 2 additions & 0 deletions OMCompiler/Compiler/boot/.gitignore
@@ -0,0 +1,2 @@
*.bak
/build

0 comments on commit 0a1f647

Please sign in to comment.