Skip to content

Commit

Permalink
prevent missing pkg-config error
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jun 10, 2024
1 parent 6d7bc04 commit 9466a6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/chplenv/third_party_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def pkgconfig_has_system_package(pkg):
@memoize
def pkgconfig_get_system_compile_args(pkg):
# check that pkg-config knows about the package in question
if not pkgconfig_has_system_package(pkg):
exists, returncode, my_stdout, my_stderr = try_run_command(['pkg-config', '--exists', pkg])
if not exists or returncode:
return (None, None)
# run pkg-config to get the cflags
cflags_line = run_command(['pkg-config', '--cflags'] + [pkg]);
Expand Down

0 comments on commit 9466a6a

Please sign in to comment.