Skip to content

Commit c8f6e3c

Browse files
committed
Use pathRemover function to remove compiler dir from output instead of str_replace.
1 parent 44087a2 commit c8f6e3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ private function doCompile($compiler_config, &$files, $dir, $CC, $CFLAGS, $CPP,
645645
if($compiler_config['logging']){
646646
file_put_contents($compiler_config['logFileName'],"$CLANG $CLANG_FLAGS $core_includes $clang_target_arch $include_directories -c -o $object_file.o $file.$ext\n", FILE_APPEND);
647647
}
648-
$output = str_replace("$dir/", "", $output); // XXX
648+
649649
$output = $this->postproc->ansi_to_html(implode("\n", $output));
650650

651651
$resp = array(
@@ -697,7 +697,8 @@ private function doCompile($compiler_config, &$files, $dir, $CC, $CFLAGS, $CPP,
697697
return $resp;
698698
}
699699
}
700-
$resp["message"] = $output;
700+
701+
$resp["message"] = $this->pathRemover ($output, $compiler_config);
701702
return $resp;
702703
}
703704
unset($output);

0 commit comments

Comments
 (0)