diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-23 08:25:33 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-23 08:25:33 +0100 |
| commit | cb6d0477d6ea65b6364bfbcd872552bec6fbc22a (patch) | |
| tree | 4bcc69f640426800b9c9aa4fa39f1b9194250c46 /public/tools | |
| parent | 4994185717d086db1a4401aae933aa7241b5bb7d (diff) | |
ADD: Use C++23 on toolchain now, and add 'ld' CLI tool.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'public/tools')
| -rw-r--r-- | public/tools/ld/.keep | 0 | ||||
| -rw-r--r-- | public/tools/ld/dist/.keep | 0 | ||||
| -rw-r--r-- | public/tools/ld/make_app.json | 12 | ||||
| -rw-r--r-- | public/tools/ld/src/CommandLine.cc | 17 |
4 files changed, 29 insertions, 0 deletions
diff --git a/public/tools/ld/.keep b/public/tools/ld/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/public/tools/ld/.keep diff --git a/public/tools/ld/dist/.keep b/public/tools/ld/dist/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/public/tools/ld/dist/.keep diff --git a/public/tools/ld/make_app.json b/public/tools/ld/make_app.json new file mode 100644 index 00000000..f423df30 --- /dev/null +++ b/public/tools/ld/make_app.json @@ -0,0 +1,12 @@ +{ + "compiler_path": "g++", + "compiler_std": "c++23", + "headers_path": ["./"], + "sources_path": ["src/CommandLine.cc"], + "output_name": "./dist/ld", + "cpp_macros": [ + "kLDVersion=0x0100", + "kLDVersionHighest=0x0100", + "kLDVersionLowest=0x0100" + ] +} diff --git a/public/tools/ld/src/CommandLine.cc b/public/tools/ld/src/CommandLine.cc new file mode 100644 index 00000000..534fdb4e --- /dev/null +++ b/public/tools/ld/src/CommandLine.cc @@ -0,0 +1,17 @@ +/* + * Created on Thu Oct 17 08:00:42 CEST 2024 + * + * Copyright (c) 2024 Amlal EL Mahrouss + */ + +#include <LibSCI/SCI.h> + +/// @brief This program loads a program for NeOS. + +SInt32 main(SInt32 argc, Char* argv[]) +{ + UIntPtr exit_code = RtlSpawnProcess(argv[1], argc - 2, argv + 2, + nullptr, 0); + + return exit_code; +} |
