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

Add env var to check if inside a cross container #1210

Open
1 of 2 tasks
Emilgardis opened this issue Feb 14, 2023 · 1 comment
Open
1 of 2 tasks

Add env var to check if inside a cross container #1210

Emilgardis opened this issue Feb 14, 2023 · 1 comment

Comments

@Emilgardis
Copy link
Member

Emilgardis commented Feb 14, 2023

Checklist

Describe your request

cross can set a environment variable CROSS_INSIDE to tell users that the context the build it's running is within a cross container.

Describe why this would be a good inclusion for cross

Useful for special cases when using bindgen, etc etc

@Threated
Copy link

There seems to be a CROSS_RUNNER env var which is used for some cross internals, which I found will facing the same issue.
I just check if its set or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants