Skip to content

Commit 15f5f1b

Browse files
committed
Fixed logging conditional for asm issues.
1 parent a83ac15 commit 15f5f1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
11671167
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports core issue.");
11681168
$coreFound = true;
11691169
}
1170-
if ((strpos($header, "in asm") !== false || strpos($body, "in asm") !== false) && $asmFound === false) {
1170+
if ((strpos($header, "in asm") !== false || strpos($body, "in asm") !== false) && $asmFound === false && $option == "asm") {
11711171
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports assembly issue.");
11721172
$asmFound = true;
11731173
}
@@ -1219,7 +1219,7 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
12191219
&& $coreFound === false && $option != "asm") {
12201220
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports core issue.");
12211221
}
1222-
if ((strpos($header, "in asm") !== false || strpos($body, "in asm") !== false) && $asmFound === false) {
1222+
if ((strpos($header, "in asm") !== false || strpos($body, "in asm") !== false) && $asmFound === false && $option == "asm") {
12231223
$this->compiler_logger->addInfo($compiler_config["compiler_dir"] . " - Clang reports assembly issue.");
12241224
}
12251225
}

0 commit comments

Comments
 (0)