Skip to content

Commit 707b31b

Browse files
committed
doc: add documentation for linker unstable flags
1 parent 7735683 commit 707b31b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

classes/cargo.bbclass

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ cargo_do_compile() {
113113
bbnote "cargo --version" `cargo --version`
114114
bbnote cargo build ${CARGO_BUILD_FLAGS}
115115

116+
# __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" is to allow
117+
# using nighly features on stable releases, i.e features that are not
118+
# yet considered stable.
119+
#
120+
# CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true" enables the nightly
121+
# configuration option target-applies-to-host value to be set
122+
#
123+
# CARGO_TARGET_APPLIES_TO_HOST="false" is actually setting the value
124+
# for this feature, which we disable, to make sure builds where target
125+
# arch == host arch work correctly
126+
#
127+
# CARGO_UNSTABLE_HOST_CONFIG="true" enables the configuration option
128+
# CARGO_HOST_LINKER value to be set
116129
export __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly"
117130
export CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
118131
export CARGO_TARGET_APPLIES_TO_HOST="false"

0 commit comments

Comments
 (0)