Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding LIBRARY_PATH and CPATH env vars #66

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crossenv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ def make_cross_python(self, context):
logger.warning("No libs in sysroot. Does it exist?")
else:
libs = os.pathsep.join(libs)
extra_envs.append(('LIBRARY_PATH', ':=', libs))
extra_envs.insert(0, ('LIBRARY_PATH', ':=', libs))

if not os.path.isdir(inc):
logger.warning("No include/ in sysroot. Does it exist?")
else:
extra_envs.append(('CPATH', ':=', inc))
extra_envs.insert(0, ('CPATH', ':=', inc))

# Put a few things in locals to make templating marginally less gross
macosx_deployment_target = self.macosx_deployment_target
Expand Down