cross icon indicating copy to clipboard operation
cross copied to clipboard

Add env var to check if inside a `cross` container

Open Emilgardis opened this issue 3 years ago • 1 comments

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

Emilgardis avatar Feb 14 '23 16:02 Emilgardis

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.

Threated avatar Apr 12 '23 13:04 Threated