From 228479a454d325340326f4fd23e13d780884fd2a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 18 Dec 2025 01:57:41 +0100 Subject: chore & feat: New DLLLoader API and AST API improvements. Signed-off-by: Amlal El Mahrouss --- src/CommandLine/pef-amd64-cxxdrv.json | 8 ++++---- src/CommandLine/pef-arm64-cdrv.cc | 3 ++- src/CommandLine/pef-arm64-cdrv.json | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src/CommandLine') diff --git a/src/CommandLine/pef-amd64-cxxdrv.json b/src/CommandLine/pef-amd64-cxxdrv.json index 62b5b4d..4520b86 100644 --- a/src/CommandLine/pef-amd64-cxxdrv.json +++ b/src/CommandLine/pef-amd64-cxxdrv.json @@ -2,9 +2,9 @@ "compiler_path": "clang++", "compiler_std": "c++20", "headers_path": [ - "../CompilerKit", - "../", - "../CompilerKit/src/Detail" + "../include/CompilerKit", + "../../include", + "../include/CompilerKit/src/Detail" ], "sources_path": [ "pef-amd64-cxxdrv.cc" @@ -16,4 +16,4 @@ "__CXXDRV__=202504", "kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)" ] -} \ No newline at end of file +} diff --git a/src/CommandLine/pef-arm64-cdrv.cc b/src/CommandLine/pef-arm64-cdrv.cc index f4be5d0..c03b039 100644 --- a/src/CommandLine/pef-arm64-cdrv.cc +++ b/src/CommandLine/pef-arm64-cdrv.cc @@ -12,7 +12,7 @@ #include #include -#ifdef __APPLE__ +#if defined(__APPLE__) static auto kPath = "/usr/local/lib/libCompilerKit.dylib"; #else static auto kPath = "/usr/lib/libCompilerKit.so"; @@ -22,6 +22,7 @@ static auto kSymbol = "CompilerCLangARM64"; Int32 main(Int32 argc, Char const* argv[]) { CompilerKit::DLLLoader dylib; + dylib(kPath, kSymbol); CompilerKit::DLLLoader::EntryT entrypoint_c = diff --git a/src/CommandLine/pef-arm64-cdrv.json b/src/CommandLine/pef-arm64-cdrv.json index be6a1be..e63e123 100644 --- a/src/CommandLine/pef-arm64-cdrv.json +++ b/src/CommandLine/pef-arm64-cdrv.json @@ -3,7 +3,7 @@ "compiler_std": "c++20", "headers_path": [ "../CompilerKit", - "../", + "../../include", "../CompilerKit/src/Detail" ], "sources_path": [ @@ -16,4 +16,4 @@ "__CXXDRV__=202504", "kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)" ] -} \ No newline at end of file +} -- cgit v1.2.3