Fix unique and reverse order

This commit is contained in:
crazywhalecc 2025-07-22 22:25:21 +08:00
parent a88f9933d2
commit 4cdafe2497
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -55,7 +55,8 @@ class PkgConfigUtil
} }
} }
return array_unique($libs); // enhancement for linker
return array_reverse(array_unique(array_reverse($libs)));
} }
private static function execWithResult(string $cmd): string private static function execWithResult(string $cmd): string