Skip to content

Commit a83ac15

Browse files
committed
Added missing logging statements.
1 parent c8f6e3c commit a83ac15

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,8 +1209,20 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
12091209
$final .= $header ."\n";
12101210
$final .= $body . "\n";
12111211
}
1212+
}else {
1213+
if (preg_match('/(\/compiler\.\w+\/libraries\/)/', $header) && $libFound === false && $option != "asm") {
1214+
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports library issue.");
1215+
}
1216+
if ((strpos($header, $compiler_config["arduino_cores_dir"]) !== false
1217+
|| (array_key_exists("external_core_files", $compiler_config)
1218+
&& strpos($header, $compiler_config["external_core_files"]) !== false))
1219+
&& $coreFound === false && $option != "asm") {
1220+
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports core issue.");
1221+
}
1222+
if ((strpos($header, "in asm") !== false || strpos($body, "in asm") !== false) && $asmFound === false) {
1223+
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports assembly issue.");
1224+
}
12121225
}
1213-
break;
12141226
}
12151227

12161228
$header_found = false;

0 commit comments

Comments
 (0)