File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55namespace SPC \builder \unix ;
66
77use SPC \builder \BuilderBase ;
8+ use SPC \builder \linux \SystemUtil ;
89use SPC \builder \linux \SystemUtil as LinuxSystemUtil ;
910use SPC \exception \SPCException ;
1011use SPC \exception \SPCInternalException ;
@@ -105,10 +106,9 @@ public function extractDebugInfo(string $binary_path): string
105106 if (PHP_OS_FAMILY === 'Darwin ' ) {
106107 shell ()->exec ("dsymutil -f {$ binary_path } -o {$ debug_file }" );
107108 } elseif (PHP_OS_FAMILY === 'Linux ' ) {
108- $ has_eu_strip = shell ()->execWithResult ('which eu-strip ' )[0 ] === 0 ;
109- if ($ has_eu_strip ) {
109+ if ($ eu_strip = SystemUtil::findCommand ('eu-strip ' )) {
110110 shell ()
111- ->exec ("eu-strip -f {$ debug_file } {$ binary_path }" )
111+ ->exec ("{ $ eu_strip } -f {$ debug_file } {$ binary_path }" )
112112 ->exec ("objcopy --add-gnu-debuglink= {$ debug_file } {$ binary_path }" );
113113 } else {
114114 shell ()
You can’t perform that action at this time.
0 commit comments