diff --git a/src/assembler/main.d b/src/assembler/main.d new file mode 100644 index 0000000..b0e361f --- /dev/null +++ b/src/assembler/main.d @@ -0,0 +1,6 @@ +import std.stdio; + +void main() +{ + writeln("same deal"); +} diff --git a/src/linker/main.d b/src/linker/main.d new file mode 100644 index 0000000..54c0db1 --- /dev/null +++ b/src/linker/main.d @@ -0,0 +1,6 @@ +import std.stdio; + +void main() +{ + writefln("stub for now until i get the actual emulator done"); +} diff --git a/src/main.d b/src/main.d index 6bea6ec..524c4f9 100644 --- a/src/main.d +++ b/src/main.d @@ -1,5 +1,6 @@ import std.stdio; -void main() { +void main() +{ writeln("hello world!"); } diff --git a/xmake.lua b/xmake.lua index 99981cc..77a6d82 100644 --- a/xmake.lua +++ b/xmake.lua @@ -1,9 +1,15 @@ add_rules("mode.debug", "mode.release") target("weirdcpu") - set_kind("binary") - add_files("src/*.d") - +do + set_kind("binary") + add_files("src/*.d") + if is_mode("debug") then + set_toolchains("dmd") + else + set_toolchains("ldc") + end +end -- -- If you want to known more usage about xmake, please see https://xmake.io -- @@ -72,4 +78,3 @@ target("weirdcpu") -- -- @endcode -- -