summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src
diff options
context:
space:
mode:
Diffstat (limited to 'dev/LibCompiler/src')
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc9
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();