379664a648
## Issue Addressed Closes #1661 ## Proposed Changes Add a dummy package called `target_check` which gets compiled early in the build and fails if the target is 32-bit ## Additional Info You can test the efficacy of this check with: ``` cross build --release --manifest-path lighthouse/Cargo.toml --target i686-unknown-linux-gnu ``` In which case this compilation error is shown: ``` error: Lighthouse requires a 64-bit CPU and operating system --> common/target_check/src/lib.rs:8:1 | 8 | / assert_cfg!( 9 | | target_pointer_width = "64", 10 | | "Lighthouse requires a 64-bit CPU and operating system", 11 | | ); | |__^ ```
9 lines
164 B
TOML
9 lines
164 B
TOML
[package]
|
|
name = "target_check"
|
|
version = "0.1.0"
|
|
authors = ["Michael Sproul <michael@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
static_assertions = "1.1.0"
|