-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As suggested in 453 it is sometimes feasible to select the backend bits via an override. This change provides an override via `cfg(dalek_bits)` to override the used serial or fiat target backend.
- Loading branch information
1 parent
29466f1
commit 5557755
Showing
7 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! This selects the dalek_bits either by default from target_pointer_width or explicitly set | ||
fn main() { | ||
#[cfg(any( | ||
all(not(target_pointer_width = "64"), not(dalek_bits = "64")), | ||
dalek_bits = "32" | ||
))] | ||
println!("cargo:rustc-cfg=dalek_bits=\"32\""); | ||
|
||
#[cfg(any( | ||
all(target_pointer_width = "64", not(dalek_bits = "32")), | ||
dalek_bits = "64" | ||
))] | ||
println!("cargo:rustc-cfg=dalek_bits=\"64\""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters