File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ public function buildUnixShared(): void
405405 'LDFLAGS ' => $ config ['ldflags ' ],
406406 'LIBS ' => $ preStatic . $ staticLibString . $ postStatic . $ sharedLibString ,
407407 'LD_LIBRARY_PATH ' => BUILD_LIB_PATH ,
408- 'COMPILER_EXTRA ' => '-lstdc++ ' ,
408+ 'SPC_COMPILER_EXTRA ' => '-lstdc++ ' ,
409409 ];
410410
411411 if ($ this ->patchBeforeSharedPhpize ()) {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function __construct(array $options = [])
3232 GlobalEnvManager::afterInit ();
3333
3434 // concurrency
35- $ this ->concurrency = intval ( getenv ('SPC_CONCURRENCY ' ) );
35+ $ this ->concurrency = ( int ) getenv ('SPC_CONCURRENCY ' );
3636 // cflags
3737 $ this ->arch_c_flags = getenv ('SPC_DEFAULT_C_FLAGS ' );
3838 $ this ->arch_cxx_flags = getenv ('SPC_DEFAULT_CXX_FLAGS ' );
@@ -94,7 +94,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
9494 }
9595 $ disable_jit = $ this ->getOption ('disable-opcache-jit ' , false ) ? '--disable-opcache-jit ' : '' ;
9696 if (!$ disable_jit && $ this ->getExt ('opcache ' )) {
97- f_putenv ('COMPILER_EXTRA =-fno-sanitize=undefined ' );
97+ f_putenv ('SPC_COMPILER_EXTRA =-fno-sanitize=undefined ' );
9898 }
9999 $ config_file_path = $ this ->getOption ('with-config-file-path ' , false ) ?
100100 ('--with-config-file-path= ' . $ this ->getOption ('with-config-file-path ' ) . ' ' ) : '' ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function __construct(array $options = [])
3434
3535 // ---------- set necessary compile vars ----------
3636 // concurrency
37- $ this ->concurrency = intval ( getenv ('SPC_CONCURRENCY ' ) );
37+ $ this ->concurrency = ( int ) getenv ('SPC_CONCURRENCY ' );
3838 // cflags
3939 $ this ->arch_c_flags = getenv ('SPC_DEFAULT_C_FLAGS ' );
4040 $ this ->arch_cxx_flags = getenv ('SPC_DEFAULT_CXX_FLAGS ' );
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ trait libaom
1212{
1313 protected function build (): void
1414 {
15- $ extra = getenv ('COMPILER_EXTRA ' );
15+ $ extra = getenv ('SPC_COMPILER_EXTRA ' );
1616 if (ToolchainManager::getToolchainClass () === ZigToolchain::class) {
1717 $ new = trim ($ extra . ' -D_GNU_SOURCE ' );
18- f_putenv ("COMPILER_EXTRA = {$ new }" );
18+ f_putenv ("SPC_COMPILER_EXTRA = {$ new }" );
1919 }
2020 UnixCMakeExecutor::create ($ this )
2121 ->setBuildDir ("{$ this ->source_dir }/builddir " )
2222 ->addConfigureArgs ('-DAOM_TARGET_CPU=generic ' )
2323 ->build ();
24- f_putenv ("COMPILER_EXTRA = {$ extra }" );
24+ f_putenv ("SPC_COMPILER_EXTRA = {$ extra }" );
2525 $ this ->patchPkgconfPrefix (['aom.pc ' ]);
2626 }
2727}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function __construct(array $options = [])
4545 $ this ->zts = $ this ->getOption ('enable-zts ' , false );
4646
4747 // set concurrency
48- $ this ->concurrency = intval ( getenv ('SPC_CONCURRENCY ' ) );
48+ $ this ->concurrency = ( int ) getenv ('SPC_CONCURRENCY ' );
4949
5050 // make cmake toolchain
5151 $ this ->cmake_toolchain_file = SystemUtil::makeCmakeToolchainFile ();
Original file line number Diff line number Diff line change 2929[[ -n " $SPC_TARGET " ]] && TARGET=" -target $SPC_TARGET " || TARGET=" "
3030
3131if [[ " $SPC_TARGET " =~ \. [0-9]+\. [0-9]+ ]]; then
32- output=$( zig cc $TARGET $COMPILER_EXTRA " ${PARSED_ARGS[@]} " 2>&1 )
32+ output=$( zig cc $TARGET $SPC_COMPILER_EXTRA " ${PARSED_ARGS[@]} " 2>&1 )
3333 status=$?
3434
3535 if [[ $status -eq 0 ]]; then
@@ -44,4 +44,4 @@ if [[ "$SPC_TARGET" =~ \.[0-9]+\.[0-9]+ ]]; then
4444 fi
4545fi
4646
47- exec zig cc $TARGET $COMPILER_EXTRA " ${PARSED_ARGS[@]} "
47+ exec zig cc $TARGET $SPC_COMPILER_EXTRA " ${PARSED_ARGS[@]} "
You can’t perform that action at this time.
0 commit comments