Skip to content

Commit ed4978b

Browse files
committed
add frankenphp version
1 parent 9a2d94c commit ed4978b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ protected function buildFrankenphp(): void
350350
}
351351

352352
$config = (new SPCConfigUtil($this))->config($this->ext_list, $this->lib_list);
353-
$cflags = "{$this->arch_c_flags} {$config['cflags']} " . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS');
353+
$cflags = "{$this->arch_c_flags} {$config['cflags']} " . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS') . ' -DFRANKENPHP_VERSION=' . $frankenPhpVersion;
354354
$libs = $config['libs'];
355355
// Go's gcc driver doesn't automatically link against -lgcov or -lrt. Ugly, but necessary fix.
356356
if ((str_contains((string) getenv('SPC_DEFAULT_C_FLAGS'), '-fprofile') ||

0 commit comments

Comments
 (0)