Skip to content

Commit ddf8c00

Browse files
Add pkg-config workaround for cross-compile
1 parent b756a6e commit ddf8c00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vinca/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ def generate_output(pkg_shortname, vinca_conf, distro, version):
338338
output["requirements"]["build"] += [
339339
{"sel(build_platform != target_platform)": "pybind11"}
340340
]
341+
if "pkg-config" in output["requirements"]["host"]:
342+
output["requirements"]["build"] += [
343+
{"sel(build_platform != target_platform)": "pkg-config"}
344+
]
341345

342346
# fix up OPENGL support for Unix
343347
if (

0 commit comments

Comments
 (0)