summaryrefslogtreecommitdiffhomepage
path: root/Private/Frontend/Compiler
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 13:25:42 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 13:26:33 +0100
commitbe73d82eff113e6a6723d6fb4bd80f56f0ef88ef (patch)
tree93425f2d183c3ea7e5e1b50374ee6548c383ab78 /Private/Frontend/Compiler
parent7c8afc0e15e54ae9e0f1a393bb52eed804d34edc (diff)
Compiler: Breaking changes, will work on C++ compiler from now on.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Frontend/Compiler')
-rw-r--r--Private/Frontend/Compiler/compiler_command.d12
-rw-r--r--Private/Frontend/Compiler/compiler_macro_helpers.d2
-rw-r--r--Private/Frontend/Compiler/compiler_start.d4
3 files changed, 9 insertions, 9 deletions
diff --git a/Private/Frontend/Compiler/compiler_command.d b/Private/Frontend/Compiler/compiler_command.d
index 80d8673..7da7ff3 100644
--- a/Private/Frontend/Compiler/compiler_command.d
+++ b/Private/Frontend/Compiler/compiler_command.d
@@ -20,7 +20,7 @@ public void mpcc_summon_executable(string path)
{
import core.stdc.stdlib;
import std.string;
-
+
system(toStringz(path));
}
@@ -32,7 +32,7 @@ public class Platform
import std.string;
import std.conv;
import std.path;
-
+
string pathHome = expandTilde("~");
pathHome ~= "/mp-ux/libc/";
@@ -45,7 +45,7 @@ public class Platform
import std.string;
import std.conv;
import std.path;
-
+
string pathHome = expandTilde("~");
pathHome ~= "/mp-ux/mp-ux/";
@@ -59,7 +59,7 @@ public class CompileCommand
{
import std.string;
import std.algorithm;
-
+
foreach (file; files)
{
if (file.length == 0)
@@ -68,7 +68,7 @@ public class CompileCommand
import std.datetime;
string input = "/usr/local/bin/bin/cpp";
-
+
string[] arr_macros = CompilerMacroHelpers.getStandardMacros();
foreach (string macro_name; arr_macros)
@@ -149,4 +149,4 @@ public class CompileCommand
mpcc_summon_executable("/usr/local/bin/bin/ld " ~ obj ~ output_object);
}
-} \ No newline at end of file
+}
diff --git a/Private/Frontend/Compiler/compiler_macro_helpers.d b/Private/Frontend/Compiler/compiler_macro_helpers.d
index 4dfe65e..f567cb1 100644
--- a/Private/Frontend/Compiler/compiler_macro_helpers.d
+++ b/Private/Frontend/Compiler/compiler_macro_helpers.d
@@ -7,4 +7,4 @@ class CompilerMacroHelpers
string[] macros = [ "__64x0__", "__mpux__" ];
return macros;
}
-} \ No newline at end of file
+}
diff --git a/Private/Frontend/Compiler/compiler_start.d b/Private/Frontend/Compiler/compiler_start.d
index 44e17da..4b5c1cd 100644
--- a/Private/Frontend/Compiler/compiler_start.d
+++ b/Private/Frontend/Compiler/compiler_start.d
@@ -31,7 +31,7 @@ void mpcc_summon_manual(string path)
core.stdc.stdlib.system(toStringz(base ~ path ~ extension));
}
-void main(string[] args)
+void main(string[] args)
{
import std.range, std.stdio;
@@ -109,4 +109,4 @@ void main(string[] args)
compiler.compile(Platform.getKernelPath(), args_list, shared_library, output_file, compile_only);
else
compiler.compile(Platform.getIncludePath(), args_list, shared_library, output_file, compile_only);
-} \ No newline at end of file
+}