Commit Graph

4 Commits

Author SHA1 Message Date
Alex Messier 53320d7ef2 Add descriptive error message when pkg-config fails
The pkg_config helper for premake was not checking for errors. When it
failed to run, either when it is not installed or the queried package is
not found, a cryptic error message would be printed:

"Error: .../xenia/third_party/premake-core/src/base/string.lua:36: attempt to index a nil value (upvalue 's')"

Fix this by checking the return status when calling pkg-config and
printing a descriptive error message.
2022-04-05 00:11:54 -05:00
Jonathan Goyvaerts 48bb93a9ca [Linux] Fix pkg-config trailing space causing premake to output an extra empty library -l
Fixes #1868
2021-07-21 09:40:20 -05:00
Triang3l a7efdd9ed8 [Build] Run pkg_config only on Linux, not all non-Windows 2021-07-20 20:16:39 +03:00
Joel Linn 8f44a14131 [Linux] Helper methods for pkg-config
- Fixes linking on GCC by putting libs in link group
2021-06-02 22:28:43 -05:00