summaryrefslogtreecommitdiffhomepage
path: root/Sources
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-04-08 09:08:36 +0200
committerAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-04-08 09:10:29 +0200
commita1826929ea34acbfe81daf9d64aeba0ec057c8cd (patch)
tree708f36c4066f696e503ce5511a528d30fffbc0f1 /Sources
parentf6d59295a226ede1bd61c60493e83ba48cd6dd27 (diff)
64x0: Fix naming of the toolchain.
link: Use kDistVersion on -v command. Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
Diffstat (limited to 'Sources')
-rw-r--r--Sources/64x0-cc.cc (renamed from Sources/64x000-cc.cc)2
-rw-r--r--Sources/link.cc11
2 files changed, 9 insertions, 4 deletions
diff --git a/Sources/64x000-cc.cc b/Sources/64x0-cc.cc
index aafc44f..834217b 100644
--- a/Sources/64x000-cc.cc
+++ b/Sources/64x0-cc.cc
@@ -167,7 +167,7 @@ class CompilerBackendCLang final : public ParserKit::CompilerBackend {
std::string Check(const char *text, const char *file);
bool Compile(const std::string &text, const char *file) override;
- const char *Language() override { return "64x000 C"; }
+ const char *Language() override { return "64x0 C"; }
};
static CompilerBackendCLang *kCompilerBackend = nullptr;
diff --git a/Sources/link.cc b/Sources/link.cc
index 55cc3f5..6ca68ec 100644
--- a/Sources/link.cc
+++ b/Sources/link.cc
@@ -34,6 +34,9 @@
//! Advanced Executable Object Format
#include <Headers/StdKit/AE.hpp>
+//! Dist version
+#include <Version.hxx>
+
//! C++ I/O headers.
#include <fstream>
#include <iostream>
@@ -41,7 +44,7 @@
//! @brief standard PEF entry.
#define kPefStart "__start"
-#define kLinkerVersion "Mahrouss Visual Linker v2.23, (c) Mahrouss Logic 2024"
+#define kLinkerVersion "Mahrouss Linker %s, (c) Mahrouss Logic 2024"
#define StringCompare(DST, SRC) strcmp(DST, SRC)
@@ -74,6 +77,9 @@ static const char *kLdDynamicSym = ":RuntimeSymbol:";
static std::vector<std::string> kObjectList;
static std::vector<char> kObjectBytes;
+#define kPrintF printf
+#define kSplashLink() kPrintF(kWhite kLinkerVersion, kDistVersion)
+
MPCC_MODULE(NewOSLinker) {
bool is_executable = true;
@@ -97,8 +103,7 @@ MPCC_MODULE(NewOSLinker) {
return 0;
} else if (StringCompare(argv[i], "-v") == 0) {
- kStdOut << kLinkerVersion << std::endl;
-
+ kSplashLink();
return 0;
} else if (StringCompare(argv[i], "-fat-bin") == 0) {
kFatBinaryEnable = true;