We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8e225 commit fcf2c96Copy full SHA for fcf2c96
src/SPC/util/GlobalEnvManager.php
@@ -43,9 +43,9 @@ public static function init(?BuilderBase $builder = null): void
43
}
44
45
// Define env vars for linux
46
- if (PHP_OS_FAMILY === 'Linux' && getenv('SPC_LIBC') === 'musl') {
+ if (PHP_OS_FAMILY === 'Linux') {
47
$arch = getenv('GNU_ARCH');
48
- if (SystemUtil::isMuslDist()) {
+ if (SystemUtil::isMuslDist() || getenv('SPC_LIBC') !== 'musl') {
49
self::putenv('SPC_LINUX_DEFAULT_CC=gcc');
50
self::putenv('SPC_LINUX_DEFAULT_CXX=g++');
51
self::putenv('SPC_LINUX_DEFAULT_AR=ar');
0 commit comments