<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">SPC_CONCURRENCY</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">4</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> bin/spc</span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> build</span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> mbstring,pcntl</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --build-cli</span></span></code></pre></div><h2id="general-environment-variables"tabindex="-1">General environment variables <aclass="header-anchor"href="#general-environment-variables"aria-label="Permalink to "General environment variables""></a></h2><p>General environment variables can be used by all build targets.</p><tabletabindex="0"><thead><tr><th>var name</th><th>default value</th><th>comment</th></tr></thead><tbody><tr><td><code>BUILD_ROOT_PATH</code></td><td><code>{pwd}/buildroot</code></td><td>The root directory of the build target</td></tr><tr><td><code>BUILD_LIB_PATH</code></td><td><code>{pwd}/buildroot/lib</code></td><td>The root directory of compilation libraries</td></tr><tr><td><code>BUILD_INCLUDE_PATH</code></td><td><code>{pwd}/buildroot/include</code></td><td>Header file directory for compiling libraries</td></tr><tr><td><code>BUILD_BIN_PATH</code></td><td><code>{pwd}/buildroot/bin</code></td><td>Compiled binary file directory</td></tr><tr><td><code>PKG_ROOT_PATH</code></td><td><code>{pwd}/pkgroot</code></td><td>Directory where precompiled tools are installed</td></tr><tr><td><code>SOURCE_PATH</code></td><td><code>{pwd}/source</code></td><td>The source code extract directory</td></tr><tr><td><code>DOWNLOAD_PATH</code></td><td><code>{pwd}/downloads</code></td><td>Downloaded file directory</td></tr><tr><td><code>SPC_CONCURRENCY</code></td><td>Depends on CPU cores</td><td>Number of parallel compilations</td></tr><tr><td><code>SPC_SKIP_PHP_VERSION_CHECK</code></td><td>empty</td><td>Skip PHP version check when set to <code>yes</code></td></tr></tbody></table><h2id="os-specific-variables"tabindex="-1">OS specific variables <aclass="header-anchor"href="#os-specific-variables"aria-label="Permalink to "OS specific variables""></a></h2><p>These environment variables are system-specific and will only take effect on a specific OS.</p><h3id="windows"tabindex="-1">Windows <aclass="header-anchor"href="#windows"aria-label="Permalink to "Windows""></a></h3><tabletabindex="0"><thead><tr><th>var name</th><th>default value</th><th>comment</th></tr></thead><tbody><tr><td><code>PHP_SDK_PATH</code></td><td><code>{pwd}\php-sdk-binary-tools</code></td><td>PHP SDK tools path</td></tr><tr><td><code>UPX_EXEC</code></td><td><code>$PKG_ROOT_PATH\bin\upx.exe</code></td><td>UPX compression tool path</td></tr><tr><td><code>SPC_MICRO_PATCHES</code></td><td><code>static_opcache,static_extensions_win32,cli_checks,disable_huge_page,vcruntime140,win32,zend_stream,cli_static</code></td><td>Used phpmicro <ahref="https://github.com/easysoft/phpmicro/blob/master/patches/Readme.md"target="_blank"rel="noreferrer">patches</a></td></tr></tbody></table><h3id="macos"tabindex="-1">macOS <aclass="header-anchor"href="#macos"aria-label="Permalink to "macOS""></a></h3><tabletabindex="0"><thead><tr><th>var name</th><th>default value</th><th>comment</th></tr></thead><tbody><tr><td><code>CC</code></td><td><code>clang</code></td><td>C Compiler</td></tr><tr><td><code>CXX</code></td><td><code>clang++</code></td><td>C++ Compiler</td></tr><tr><td><code>SPC_DEFAULT_C_FLAGS</code></td><td><code>--target=arm64-apple-darwin</code> or <code>--target=x86_64-apple-darwin</code></td><td>Default C flags (not the same as <code>CFLAGS</code>)</td></tr><tr><td><code>SPC_DEFAULT_CXX_FLAGS</code></td><td><code>--target=arm64-apple-darwin</code> or <code>--target=x86_64-apple-darwin</code></td><td>Default C flags (not the same as <code>CPPFLAGS</code>)</td></tr><tr><td><code>SPC_CMD_PREFIX_PHP_BU