From 75b1a419fc13d9c3e1c35665ce24434d4c1ab004 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 8 Feb 2025 10:09:04 +0100 Subject: ADD: Patch command parse on linker, and use Boolean type in C++ compiler Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/src/DynamicLinkerPEF.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dev/LibCompiler/src/DynamicLinkerPEF.cc') diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc index 289dd36..0bc88c2 100644 --- a/dev/LibCompiler/src/DynamicLinkerPEF.cc +++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc @@ -191,6 +191,9 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) } else if (StringCompare(argv[linker_arg], "--ld64:output") == 0) { + if ((linker_arg + 1) > argc) + continue; + kOutput = argv[linker_arg + 1]; ++linker_arg; @@ -224,12 +227,12 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) } else { - namespace fs = std::filesystem; + namespace FS = std::filesystem; // check for existing files, if they don't throw an error. for (auto& obj : kObjectList) { - if (!fs::exists(obj)) + if (!FS::exists(obj)) { // if filesystem doesn't find file // -> throw error. -- cgit v1.2.3