File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 44
55namespace SPC \builder \unix \library ;
66
7+ use SPC \store \FileSystem ;
78use SPC \util \executor \UnixAutoconfExecutor ;
89
910trait libedit
1011{
12+ public function patchBeforeBuild (): bool
13+ {
14+ FileSystem::replaceFileRegex (
15+ $ this ->source_dir . '/src/sys.h ' ,
16+ '|//#define\s+strl| ' ,
17+ '#define strl '
18+ );
19+ return true ;
20+ }
21+
1122 protected function build (): void
1223 {
1324 UnixAutoconfExecutor::create ($ this )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public static function patchBeforeBuildconf(BuilderBase $builder): void
4444 }
4545 foreach ($ builder ->getLibs () as $ lib ) {
4646 if ($ lib ->patchBeforeBuildconf () === true ) {
47- logger ()->info ("Library [ {$ lib ->getName ()}]patched before buildconf " );
47+ logger ()->info ("Library [ {$ lib ->getName ()}] patched before buildconf " );
4848 }
4949 }
5050 // patch windows php 8.1 bug
You can’t perform that action at this time.
0 commit comments