Skip to content

Commit c966485

Browse files
committed
re2c for 8.5?
1 parent 56bac35 commit c966485

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/SPC/toolchain/ToolchainManager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,10 @@ public static function afterInitToolchain(): void
7373
if (getenv('PHP_BUILD_COMPILER') === false && ($compiler_info = $instance->getCompilerInfo())) {
7474
GlobalEnvManager::putenv("PHP_BUILD_COMPILER={$compiler_info}");
7575
}
76+
if (getenv('RE2C') === false) {
77+
// php 8.5 needs RE2C defined
78+
$re2c = SystemUtil::findCommand('re2c') ?: BUILD_BIN_PATH . '/re2c';
79+
GlobalEnvManager::putenv("RE2C={$re2c}");
80+
}
7681
}
7782
}

0 commit comments

Comments
 (0)