Skip to content

Commit 47ab5d7

Browse files
committed
use c17 for extensions as well?
1 parent b2182b4 commit 47ab5d7

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/SPC/builder/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected function addExtensionDependency(string $name, bool $optional = false):
576576

577577
protected function getExtraEnv(): array
578578
{
579-
return [];
579+
return ['CFLAGS' => '-std=c17'];
580580
}
581581

582582
/**

src/SPC/builder/extension/mongodb.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,4 @@ public function getUnixConfigureArg(bool $shared = false): string
2424
$arg .= $this->builder->getLib('zlib') ? ' --with-mongodb-zlib=yes ' : ' --with-mongodb-zlib=bundled ';
2525
return clean_spaces($arg);
2626
}
27-
28-
protected function getExtraEnv(): array
29-
{
30-
return ['CFLAGS' => '-std=c17'];
31-
}
3227
}

src/SPC/builder/extension/pgsql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getWindowsConfigureArg(bool $shared = false): string
4545
protected function getExtraEnv(): array
4646
{
4747
return [
48-
'CFLAGS' => '-Wno-int-conversion',
48+
'CFLAGS' => '-std=c17 -Wno-int-conversion',
4949
];
5050
}
5151
}

0 commit comments

Comments
 (0)