diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-21 15:39:09 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-21 15:39:09 +0200 |
| commit | 385178a1ecb41a7a529d219d80e2ed1232831abd (patch) | |
| tree | 926cbfc894e49d5cc067e84c58c007a6f503ee8a /dev | |
| parent | 0c5a05e9ab43068599461f305ca96ba0125b501f (diff) | |
feat(cxxdrv): Compile directly when file extension matches.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 293d97e..29cdee7 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -884,7 +884,10 @@ LIBCOMPILER_MODULE(CompilerCPlusPlusAMD64) { for (std::string ext : exts) { if (argv_i.find(ext) != std::string::npos) { found = true; - break; + + if (kFactory.Compile(argv_i, kMachine) != kExitOK) { + return kExitNO; + } } } @@ -895,10 +898,6 @@ LIBCOMPILER_MODULE(CompilerCPlusPlusAMD64) { return kExitNO; } - - if (kFactory.Compile(argv_i, kMachine) != kExitOK) { - return kExitNO; - } } kFactory.Unmount(); |
