summaryrefslogtreecommitdiffhomepage
path: root/src/CommandLine
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-09 02:16:39 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-09 02:16:39 +0100
commit693dd621321e3af029d2c8cc8d58af716eb43988 (patch)
tree02d12821dd1a1288e35c98252909dd9cafc9e4ce /src/CommandLine
parentf8f2153b6b859dee35192f237d292e75c0a4cd76 (diff)
feat: necfront: final refactors and improvements before finishing Netcar implementation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CommandLine')
-rw-r--r--src/CommandLine/cppdrv.cc4
-rw-r--r--src/CommandLine/pef-amd64-necdrv.cc (renamed from src/CommandLine/pef-amd64-cxxdrv.cc)2
-rw-r--r--src/CommandLine/pef-amd64-necdrv.json (renamed from src/CommandLine/pef-amd64-cxxdrv.json)6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/CommandLine/cppdrv.cc b/src/CommandLine/cppdrv.cc
index d5d2cd0..6977923 100644
--- a/src/CommandLine/cppdrv.cc
+++ b/src/CommandLine/cppdrv.cc
@@ -9,10 +9,10 @@
#include <CompilerKit/Detail/Config.h>
#include <CompilerKit/ErrorID.h>
-CK_IMPORT_C int CPlusPlusPreprocessorMain(int argc, char const* argv[]);
+CK_IMPORT_C int GenericPreprocessorMain(int argc, char const* argv[]);
int main(int argc, char const* argv[]) {
- if (auto code = CPlusPlusPreprocessorMain(argc, argv); code > 0) {
+ if (auto code = GenericPreprocessorMain(argc, argv); code > 0) {
std::printf("cppdrv: preprocessor exited with code %i.\n", code);
return NECTAR_EXEC_ERROR;
diff --git a/src/CommandLine/pef-amd64-cxxdrv.cc b/src/CommandLine/pef-amd64-necdrv.cc
index 6617d2c..921c674 100644
--- a/src/CommandLine/pef-amd64-cxxdrv.cc
+++ b/src/CommandLine/pef-amd64-necdrv.cc
@@ -17,7 +17,7 @@ static auto kPath = "/usr/local/lib/libCompilerKit.dylib";
static auto kPath = "/usr/lib/libCompilerKit.so";
#endif
-static auto kSymbol = "CompilerCPlusPlusAMD64";
+static auto kSymbol = "CompilerNectarAMD64";
Int32 main(Int32 argc, Char const* argv[]) {
CompilerKit::DLLLoader dylib;
diff --git a/src/CommandLine/pef-amd64-cxxdrv.json b/src/CommandLine/pef-amd64-necdrv.json
index 90295b9..ea2209d 100644
--- a/src/CommandLine/pef-amd64-cxxdrv.json
+++ b/src/CommandLine/pef-amd64-necdrv.json
@@ -7,13 +7,13 @@
"../include/CompilerKit/src/Detail"
],
"sources_path": [
- "pef-amd64-cxxdrv.cc"
+ "pef-amd64-necdrv.cc"
],
- "output_name": "pef-amd64-cxxdrv",
+ "output_name": "pef-amd64-necdrv",
"compiler_flags": [
],
"cpp_macros": [
- "__CXXDRV__=202504",
+ "__NECDRV__=202504",
"kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)"
]
}