File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/SPC/builder/unix/library Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ protected function build(): void
1919 $ cc = getenv ('CC ' );
2020 $ cxx = getenv ('CXX ' );
2121 if (str_contains ($ cc , 'zig ' ) && getenv ('SPC_LIBC ' ) === 'musl ' ) {
22- putenv ('CC= ' . $ cc . ' -D_POSIX_SOURCE ' );
23- putenv ('CXX= ' . $ cxx . ' -D_POSIX_SOURCE ' );
22+ f_putenv ('CC= ' . $ cc . ' -D_POSIX_SOURCE ' );
23+ f_putenv ('CXX= ' . $ cxx . ' -D_POSIX_SOURCE ' );
2424 }
2525 UnixCMakeExecutor::create ($ this )
2626 ->setBuildDir ("{$ this ->source_dir }/builddir " )
2727 ->addConfigureArgs ('-DAOM_TARGET_CPU=generic ' )
2828 ->build ();
2929 if (str_contains ($ cc , 'zig ' ) && getenv ('SPC_LIBC ' ) === 'musl ' ) {
30- putenv ('CC= ' . $ cc );
31- putenv ('CXX= ' . $ cxx );
30+ f_putenv ('CC= ' . $ cc );
31+ f_putenv ('CXX= ' . $ cxx );
3232 }
3333 $ this ->patchPkgconfPrefix (['aom.pc ' ]);
3434 }
You can’t perform that action at this time.
0 commit comments