Skip to content

Commit 1193956

Browse files
committed
Document cross compilation target == host bugfix.
Signed-off-by: James Hilliard <[email protected]>
1 parent bab6faa commit 1193956

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/installation.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ use ``--no-binary``.
160160
161161
$ pip install cryptography --no-binary cryptography
162162
163+
Cross Compiling
164+
~~~~~~~~~~~~~~~
165+
166+
If you are cross compiling for a target system that has the same target triple
167+
as the build host you should add these variables in your environment to prevent
168+
cargo from linking host build-scripts against the target libraries.
169+
170+
.. code-block:: console
171+
172+
__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly"
173+
CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
174+
CARGO_TARGET_APPLIES_TO_HOST="false"
163175
164176
Using your own OpenSSL on Linux
165177
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)