diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-19 17:39:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-19 17:39:33 +0100 |
| commit | 3fc9ef47956e48da0c78316ca28f11ddac9af25d (patch) | |
| tree | 2a1457610e87d09d59eb672dfae33d652a71a9df | |
| parent | 8dbb92e920c662fa2fe22693677d90498f2d85d9 (diff) | |
feat: use 'kSymbol' to call C++ driver on AMD64 target.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | tools/cxxdrv.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/cxxdrv.cc b/tools/cxxdrv.cc index 80ccec2..1d30ab4 100644 --- a/tools/cxxdrv.cc +++ b/tools/cxxdrv.cc @@ -14,6 +14,7 @@ #include <LibCompiler/Version.h> static auto kPath = "/usr/local/lib/libCompiler.dylib"; +static auto kSymbol = "CompilerCPlusPlusAMD64"; Int32 main(Int32 argc, Char const* argv[]) { LibCompilerDylib handler = dlopen(kPath, RTLD_LAZY | RTLD_GLOBAL); @@ -26,7 +27,7 @@ Int32 main(Int32 argc, Char const* argv[]) { } LibCompilerEntrypoint entrypoint_cxx = - (LibCompilerEntrypoint) dlsym(handler, "CompilerCPlusPlusAMD64"); + (LibCompilerEntrypoint) dlsym(handler, kSymbol); if (!entrypoint_cxx) { kStdOut; |
