summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/DynamicLinkerPEF.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-08 10:09:04 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-08 10:09:04 +0100
commit75b1a419fc13d9c3e1c35665ce24434d4c1ab004 (patch)
tree4e7e99d6b3336097642c1630a9aa162479059f6b /dev/LibCompiler/src/DynamicLinkerPEF.cc
parent3020a2092b3a80f3adadb719d9d4668f25aadde1 (diff)
ADD: Patch command parse on linker, and use Boolean type in C++ compiler
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/src/DynamicLinkerPEF.cc')
-rw-r--r--dev/LibCompiler/src/DynamicLinkerPEF.cc7
1 files changed, 5 insertions, 2 deletions
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.