Skip to content

Commit d539778

Browse files
authored
Fix broken windows build (#4636)
Fixes #4625. Specifically, the `cfg` attribute `windows` refers to the compile target and not the build environment, and in the case of cross-compilation, the build environment and target can differ. However, the line modified is related to documentation generation, so there should be no critical issue with this change.
1 parent bcab07a commit d539778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substrate/primitives/runtime/src/generic/unchecked_extrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type UncheckedSignaturePayload<Address, Signature, Extra> = (Address, Signature,
5757
/// could in principle be any other interaction. Transactions are either signed or unsigned. A
5858
/// sensible transaction pool should ensure that only transactions that are worthwhile are
5959
/// considered for block-building.
60-
#[cfg_attr(feature = "std", doc = simple_mermaid::mermaid!("../../docs/mermaid/extrinsics.mmd"))]
60+
#[cfg_attr(all(feature = "std", not(windows)), doc = simple_mermaid::mermaid!("../../docs/mermaid/extrinsics.mmd"))]
6161
/// This type is by no means enforced within Substrate, but given its genericness, it is highly
6262
/// likely that for most use-cases it will suffice. Thus, the encoding of this type will dictate
6363
/// exactly what bytes should be sent to a runtime to transact with it.

0 commit comments

Comments
 (0)