summaryrefslogtreecommitdiffhomepage
path: root/src/CommandLine
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 09:39:34 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 09:39:34 +0100
commit2a16b53aaf4b38f5e63ce69c96df65b24e26b82b (patch)
tree60991dbc4a93364c3208435e8e3a0b8b2ef8ea2b /src/CommandLine
parent0d197225d9c90123df67a752479f890de5ebe413 (diff)
wip: cppfront: Implementing C++ part of the frontend.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CommandLine')
-rw-r--r--src/CommandLine/pef-arm64-cdrv.cc40
-rw-r--r--src/CommandLine/pef-arm64-cdrv.json20
2 files changed, 0 insertions, 60 deletions
diff --git a/src/CommandLine/pef-arm64-cdrv.cc b/src/CommandLine/pef-arm64-cdrv.cc
deleted file mode 100644
index 07d9292..0000000
--- a/src/CommandLine/pef-arm64-cdrv.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-/* ========================================
-
- Copyright (C) 2024-2025 Amlal El Mahrouss, licensed under the Apache 2.0 license
-
-======================================== */
-
-/// @file pef-arm-cdrv.cc
-/// @brief Nectar ARm64 C frontend compiler.
-
-#include <CompilerKit/Detail/Config.h>
-#include <CompilerKit/ErrorID.h>
-#include <CompilerKit/Utilities/Compiler.h>
-#include <CompilerKit/Utilities/DLL.h>
-
-#if defined(__APPLE__)
-static auto kPath = "/usr/local/lib/libCompilerKit.dylib";
-#else
-static auto kPath = "/usr/lib/libCompilerKit.so";
-#endif
-
-static auto kSymbol = "CompilerCLangARM64";
-
-Int32 main(Int32 argc, Char const* argv[]) {
- CompilerKit::DLLLoader dylib;
-
- dylib(kPath, kSymbol);
-
- CompilerKit::DLLLoader::EntryT entrypoint_c =
- reinterpret_cast<CompilerKit::DLLLoader::EntryT>(dylib.fEntrypoint);
-
- if (!entrypoint_c) {
- kStdOut;
- std::printf("error: Could not find entrypoint in %s: %s\n", kPath, dlerror());
-
- return EXIT_FAILURE;
- }
-
- return (entrypoint_c(argc, argv) == NECTAR_SUCCESS) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-
diff --git a/src/CommandLine/pef-arm64-cdrv.json b/src/CommandLine/pef-arm64-cdrv.json
deleted file mode 100644
index 1784326..0000000
--- a/src/CommandLine/pef-arm64-cdrv.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "compiler_path": "clang++",
- "compiler_std": "c++20",
- "headers_path": [
- "../CompilerKit",
- "../../include",
- "../CompilerKit/src/Detail"
- ],
- "sources_path": [
- "pef-arm64-cdrv.cc"
- ],
- "output_name": "pef-arm64-cdrv",
- "compiler_flags": [
- ],
- "cpp_macros": [
- "__CXXDRV__=202504",
- "kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)"
- ]
-}
-