@@ -1507,7 +1507,7 @@ algorithm
15071507 result_file := stringAppendList(List . consOnTrue(not Config . getRunningTestsuite(),compileDir,{executable,"_res." ,outputFormat_str}));
15081508 // result file might have been set by simflags (-r ...)
15091509 result_file := selectResultFile(result_file, simflags);
1510- executableSuffixedExe := stringAppend(executable, getSimulationExtension(Config . simCodeTarget(),System . platform() ));
1510+ executableSuffixedExe := stringAppend(executable, getSimulationExtension(Config . simCodeTarget(),Autoconf . platform));
15111511 logFile := stringAppend(executable,".log" );
15121512 // adrpo: log file is deleted by buildModel! do NOT DELETE IT AGAIN!
15131513 // we should really have different log files for simulation/compilation!
@@ -1672,7 +1672,7 @@ algorithm
16721672 (cache,simSettings) = calculateSimulationSettings(cache,env,vals,msg);
16731673 SimCode . SIMULATION_SETTINGS (outputFormat = outputFormat_str) = simSettings;
16741674 result_file = stringAppendList(List . consOnTrue(not Config . getRunningTestsuite(),compileDir,{executable,"_res." ,outputFormat_str}));
1675- executableSuffixedExe = stringAppend(executable, getSimulationExtension(Config . simCodeTarget(),System . platform() ));
1675+ executableSuffixedExe = stringAppend(executable, getSimulationExtension(Config . simCodeTarget(),Autoconf . platform));
16761676 logFile = stringAppend(executable,".log" );
16771677 // adrpo: log file is deleted by buildModel! do NOT DELTE IT AGAIN!
16781678 // we should really have different log files for simulation/compilation!
@@ -1758,9 +1758,9 @@ algorithm
17581758 true = b; /* if something goes wrong while initializing */
17591759 fmiTypeDefinitionsList = listReverse(fmiTypeDefinitionsList);
17601760 fmiModelVariablesList = listReverse(fmiModelVariablesList);
1761- s1 = System . tolower(System . platform() );
1761+ s1 = System . tolower(Autoconf . platform);
17621762 str = Tpl . tplString(CodegenFMU . importFMUModelica, FMI . FMIIMPORT (s1, filename, workdir, fmiLogLevel, b2, fmiContext, fmiInstance, fmiInfo, fmiTypeDefinitionsList, fmiExperimentAnnotation, fmiModelVariablesInstance, fmiModelVariablesList, inputConnectors, outputConnectors));
1763- pd = System . pathDelimiter() ;
1763+ pd = Autoconf . pathDelimiter;
17641764 str1 = FMI . getFMIModelIdentifier(fmiInfo);
17651765 str2 = FMI . getFMIType(fmiInfo);
17661766 str3 = FMI . getFMIVersion(fmiInfo);
@@ -1802,9 +1802,9 @@ algorithm
18021802 true = b; /* if something goes wrong while initializing */
18031803 fmiTypeDefinitionsList = listReverse(fmiTypeDefinitionsList);
18041804 fmiModelVariablesList = listReverse(fmiModelVariablesList);
1805- s1 = System . tolower(System . platform() );
1805+ s1 = System . tolower(Autoconf . platform);
18061806 str = Tpl . tplString(CodegenFMU . importFMUModelDescription, FMI . FMIIMPORT (s1, modeldescriptionfilename, workdir, fmiLogLevel, b2, fmiContext, fmiInstance, fmiInfo, fmiTypeDefinitionsList, fmiExperimentAnnotation, fmiModelVariablesInstance, fmiModelVariablesList, inputConnectors, outputConnectors));
1807- pd = System . pathDelimiter() ;
1807+ pd = Autoconf . pathDelimiter;
18081808 str1 = FMI . getFMIModelIdentifier(fmiInfo);
18091809 str3 = FMI . getFMIVersion(fmiInfo);
18101810 outputFile = stringAppendList({workdir,pd,str1,"_Input_Output_FMU.mo" });
@@ -2192,7 +2192,7 @@ algorithm
21922192 case (cache,_,"getAvailableLibraries" ,{},_)
21932193 equation
21942194 mp = Settings . getModelicaPath(Config . getRunningTestsuite());
2195- gd = System . groupDelimiter() ;
2195+ gd = Autoconf . groupDelimiter;
21962196 mps = System . strtok(mp, gd);
21972197 files = List . flatten(List . map(mps, System . moFiles));
21982198 dirs = List . flatten(List . map(mps, getLibrarySubdirectories));
@@ -2358,7 +2358,7 @@ algorithm
23582358 case (cache,_,"checkTaskGraph" ,{Values . STRING (filename),Values . STRING (filename_1)},_)
23592359 equation
23602360 pwd = System . pwd();
2361- pd = System . pathDelimiter() ;
2361+ pd = Autoconf . pathDelimiter;
23622362 filename = if System . substring(filename,1 ,1 ) == "/" then filename else stringAppendList({pwd,pd,filename});
23632363 filename_1 = if System . substring(filename_1,1 ,1 ) == "/" then filename_1 else stringAppendList({pwd,pd,filename_1});
23642364 strings = TaskGraphResults . checkTaskGraph(filename, filename_1);
@@ -2372,7 +2372,7 @@ algorithm
23722372 case (cache,_,"checkCodeGraph" ,{Values . STRING (filename),Values . STRING (filename_1)},_)
23732373 equation
23742374 pwd = System . pwd();
2375- pd = System . pathDelimiter() ;
2375+ pd = Autoconf . pathDelimiter;
23762376 filename = if System . substring(filename,1 ,1 ) == "/" then filename else stringAppendList({pwd,pd,filename});
23772377 filename_1 = if System . substring(filename_1,1 ,1 ) == "/" then filename_1 else stringAppendList({pwd,pd,filename_1});
23782378 strings = TaskGraphResults . checkCodeGraph(filename, filename_1);
@@ -2409,7 +2409,7 @@ algorithm
24092409 omhome = Settings . getInstallationDirectoryPath();
24102410 // get the simulation filename
24112411 (cache,filename) = cevalCurrentSimulationResultExp(cache,env,filename,msg);
2412- pd = System . pathDelimiter() ;
2412+ pd = Autoconf . pathDelimiter;
24132413 // create absolute path of simulation result file
24142414 str1 = System . pwd() + pd + filename;
24152415 s1 = if Autoconf . os == "Windows_NT" then ".exe" else "" ;
@@ -2470,7 +2470,7 @@ algorithm
24702470 omhome = Settings . getInstallationDirectoryPath();
24712471 // get the simulation filename
24722472 (cache,filename) = cevalCurrentSimulationResultExp(cache,env,filename,msg);
2473- pd = System . pathDelimiter() ;
2473+ pd = Autoconf . pathDelimiter;
24742474 // create absolute path of simulation result file
24752475 str1 = System . pwd() + pd + filename;
24762476 s1 = if Autoconf . os == "Windows_NT" then ".exe" else "" ;
@@ -2850,7 +2850,7 @@ algorithm
28502850 omhome = Settings . getInstallationDirectoryPath();
28512851 // get the simulation filename
28522852 (cache,filename) = cevalCurrentSimulationResultExp(cache,env,filename,msg);
2853- pd = System . pathDelimiter() ;
2853+ pd = Autoconf . pathDelimiter;
28542854 // create absolute path of simulation result file
28552855 str1 = System . pwd() + pd + filename;
28562856 s1 = if Autoconf . os == "Windows_NT" then ".exe" else "" ;
@@ -2935,7 +2935,7 @@ protected function getLibrarySubdirectories "author: lochel
29352935 output list< String > outSubdirectories = {};
29362936protected
29372937 list< String > allSubdirectories = System . subDirectories(inPath);
2938- String pd = System . pathDelimiter() ;
2938+ String pd = Autoconf . pathDelimiter;
29392939algorithm
29402940 for dir in allSubdirectories loop
29412941 if System . regularFileExists(inPath + pd + dir + pd + "package.mo" ) then
@@ -3363,8 +3363,8 @@ protected
33633363algorithm
33643364 CC := System . getCCompiler();
33653365 CFLAGS := "-Os " + System . stringReplace(System . getCFlags(),"${MODELICAUSERCFLAGS}" ,"" );
3366- LDFLAGS := ("-L" + dquote+ Settings . getInstallationDirectoryPath()+ "/lib/" + System . getTriple() + "/omc" + dquote+ " " +
3367- "-Wl,-rpath," + dquote+ Settings . getInstallationDirectoryPath()+ "/lib/" + System . getTriple() + "/omc" + dquote+ " " +
3366+ LDFLAGS := ("-L" + dquote+ Settings . getInstallationDirectoryPath()+ "/lib/" + Autoconf . triple + "/omc" + dquote+ " " +
3367+ "-Wl,-rpath," + dquote+ Settings . getInstallationDirectoryPath()+ "/lib/" + Autoconf . triple + "/omc" + dquote+ " " +
33683368 System . getLDFlags()+ " " );
33693369 if System . regularFileExists(logfile) then
33703370 System . removeFile(logfile);
@@ -3509,7 +3509,7 @@ algorithm
35093509 try
35103510 (success, cache, libs,_, _) := SimCodeMain . translateModel(SimCodeMain . TranslateModelKind . FMU (FMUVersion , FMUType , fmuTargetName), cache, inEnv, className, filenameprefix, addDummy, SOME (simSettings));
35113511 true := success;
3512- outValue := Values . STRING ((if not Config . getRunningTestsuite() then System . pwd() + System . pathDelimiter() else "" ) + fmuTargetName + ".fmu" );
3512+ outValue := Values . STRING ((if not Config . getRunningTestsuite() then System . pwd() + Autoconf . pathDelimiter else "" ) + fmuTargetName + ".fmu" );
35133513 else
35143514 outValue := Values . STRING ("" );
35153515 return ;
@@ -3582,7 +3582,7 @@ algorithm
35823582 if (System . regularFileExists(fileName)) then
35833583 // get OPENMODELICAHOME
35843584 omhome := Settings . getInstallationDirectoryPath();
3585- pd := System . pathDelimiter() ;
3585+ pd := Autoconf . pathDelimiter;
35863586 ext := if Autoconf . os == "Windows_NT" then ".exe" else "" ;
35873587 if encrypt then
35883588 // create the path till packagetool
@@ -3645,7 +3645,7 @@ protected
36453645 Boolean success;
36463646algorithm
36473647 (success,cache) := SimCodeMain . translateModel(SimCodeMain . TranslateModelKind . XML (),cache,env,className,fileNamePrefix,addDummy,inSimSettingsOpt);
3648- outValue := Values . STRING (if success then ((if not Config . getRunningTestsuite() then System . pwd() + System . pathDelimiter() else "" ) + fileNamePrefix+ ".xml" ) else "" );
3648+ outValue := Values . STRING (if success then ((if not Config . getRunningTestsuite() then System . pwd() + Autoconf . pathDelimiter else "" ) + fileNamePrefix+ ".xml" ) else "" );
36493649end translateModelXML;
36503650
36513651
@@ -5039,7 +5039,7 @@ algorithm
50395039 end if ;
50405040 end if ;
50415041
5042- compileDir := System . pwd() + System . pathDelimiter() ;
5042+ compileDir := System . pwd() + Autoconf . pathDelimiter;
50435043 (cache,simSettings) := calculateSimulationSettings(cache, env, values, msg);
50445044 SimCode . SIMULATION_SETTINGS (method = method_str, outputFormat = outputFormat_str) := simSettings;
50455045
@@ -5264,7 +5264,7 @@ algorithm
52645264 p_class = Absyn . crefToPath(class_) "change to the saved files directory" ;
52655265 cdef = Interactive . getPathedClassInProgram(p_class, p);
52665266 filename = Absyn . classFilename(cdef);
5267- pd = System . pathDelimiter() ;
5267+ pd = Autoconf . pathDelimiter;
52685268 (pd_1 :: _) = stringListStringChar(pd);
52695269 filename_1 = Util . stringSplitAtChar(filename, pd_1);
52705270 dir = List . stripLast(filename_1);
@@ -5275,7 +5275,7 @@ algorithm
52755275 equation
52765276 omhome = Settings . getInstallationDirectoryPath() "model not yet saved! change to $OPENMODELICAHOME/work" ;
52775277 omhome_1 = System . trim(omhome, " \" " );
5278- pd = System . pathDelimiter() ;
5278+ pd = Autoconf . pathDelimiter;
52795279 dir_1 = stringAppendList({" \" " ,omhome_1,pd,"work" ," \" " });
52805280 then
52815281 dir_1;
@@ -5444,7 +5444,7 @@ algorithm
54445444 (cache, env, dae) = dumpXMLDAEFrontEnd(cache, env, classname);
54455445 description = DAEUtil . daeDescription(dae);
54465446
5447- compileDir = System . pwd() + System . pathDelimiter() ;
5447+ compileDir = System . pwd() + Autoconf . pathDelimiter;
54485448 cname_str = Absyn . pathString(classname);
54495449 filenameprefix = if filenameprefix == "<default>" then cname_str else filenameprefix;
54505450
@@ -5484,7 +5484,7 @@ algorithm
54845484 (cache, env, dae) = dumpXMLDAEFrontEnd(cache, env, classname);
54855485 description = DAEUtil . daeDescription(dae);
54865486
5487- compileDir = System . pwd() + System . pathDelimiter() ;
5487+ compileDir = System . pwd() + Autoconf . pathDelimiter;
54885488 cname_str = Absyn . pathString(classname);
54895489 filenameprefix = if filenameprefix == "<default>" then cname_str else filenameprefix;
54905490
@@ -5525,7 +5525,7 @@ algorithm
55255525 (cache, env, dae) = dumpXMLDAEFrontEnd(cache, env, classname);
55265526 description = DAEUtil . daeDescription(dae);
55275527
5528- compileDir = System . pwd() + System . pathDelimiter() ;
5528+ compileDir = System . pwd() + Autoconf . pathDelimiter;
55295529 cname_str = Absyn . pathString(classname);
55305530 filenameprefix = if filenameprefix == "<default>" then cname_str else filenameprefix;
55315531
@@ -5564,7 +5564,7 @@ algorithm
55645564 (cache, env, dae) = dumpXMLDAEFrontEnd(cache, env, classname);
55655565 description = DAEUtil . daeDescription(dae);
55665566
5567- compileDir = System . pwd() + System . pathDelimiter() ;
5567+ compileDir = System . pwd() + Autoconf . pathDelimiter;
55685568 cname_str = Absyn . pathString(classname);
55695569 filenameprefix = if filenameprefix == "<default>" then cname_str else filenameprefix;
55705570
0 commit comments