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 d532b57 commit 4e4cf4bCopy full SHA for 4e4cf4b
src/SPC/util/SPCConfigUtil.php
@@ -143,6 +143,10 @@ private function getIncludesString(array $libraries): string
143
}
144
$pc_cflags = implode(' ', $pc);
145
if ($pc_cflags !== '' && ($pc_cflags = PkgConfigUtil::getCflags($pc_cflags)) !== '') {
146
+ $arr = explode(' ', $pc_cflags);
147
+ $arr = array_unique($arr);
148
+ $arr = array_filter($arr, fn ($x) => !str_starts_with($x, 'SHELL:-Xarch_'));
149
+ $pc_cflags = implode(' ', $arr);
150
$includes[] = $pc_cflags;
151
152
0 commit comments