File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function __construct(array $options = [])
3030
3131 GlobalEnvManager::init ();
3232
33- if (getenv ('SPC_LIBC ' ) === 'musl ' && !SystemUtil::isMuslDist ()) {
33+ if (getenv ('SPC_LIBC ' ) === 'musl ' && !SystemUtil::isMuslDist () && ! str_contains (( string ) getenv ( ' CC ' ), ' zig ' ) ) {
3434 $ this ->setOptionIfNotExist ('library_path ' , "LIBRARY_PATH= \"/usr/local/musl/ {$ arch }-linux-musl/lib \"" );
3535 $ this ->setOptionIfNotExist ('ld_library_path ' , "LD_LIBRARY_PATH= \"/usr/local/musl/ {$ arch }-linux-musl/lib \"" );
3636 $ configure = getenv ('SPC_CMD_PREFIX_PHP_CONFIGURE ' );
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ trait attr
1515 protected function build (): void
1616 {
1717 UnixAutoconfExecutor::create ($ this )
18+ ->appendEnv ([
19+ 'CFLAGS ' => '-Wno-int-conversion -Wno-implicit-function-declaration ' ,
20+ ])
1821 ->exec ('libtoolize --force --copy ' )
1922 ->exec ('./autogen.sh || autoreconf -if ' )
2023 ->configure ('--disable-nls ' )
You can’t perform that action at this time.
0 commit comments