use c17 for extensions as well?

This commit is contained in:
henderkes 2025-12-05 13:57:28 +01:00
parent b2182b4fe1
commit 47ab5d7584
3 changed files with 2 additions and 7 deletions

View File

@ -576,7 +576,7 @@ class Extension
protected function getExtraEnv(): array
{
return [];
return ['CFLAGS' => '-std=c17'];
}
/**

View File

@ -24,9 +24,4 @@ class mongodb extends Extension
$arg .= $this->builder->getLib('zlib') ? ' --with-mongodb-zlib=yes ' : ' --with-mongodb-zlib=bundled ';
return clean_spaces($arg);
}
protected function getExtraEnv(): array
{
return ['CFLAGS' => '-std=c17'];
}
}

View File

@ -45,7 +45,7 @@ class pgsql extends Extension
protected function getExtraEnv(): array
{
return [
'CFLAGS' => '-Wno-int-conversion',
'CFLAGS' => '-std=c17 -Wno-int-conversion',
];
}
}