-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/fake-signing: Make runnable on Linux (#26)
* examples/fake-signing: Fix printing success even when mismatched And some other cleanups. * examples/fake-signing: Make runnable on Linux The main reason for fake signing is making it run on Linux - and not depend on `dxil.dll` on Windows - so it's great if this example runs on Linux as well to see it all working even if that requires a few nasty cfg blocks. Note that this is done with `cfg!()` and regular `if` blocks instead of attributes, such that this code lints and compiles on both Windows and Linux even if the `validate_dxil()` codepath is never entered on the latter (and that way includes, `let mut all_matches` etc don't need to be `#[cfg(windows)]`'ed out either).
- Loading branch information
Showing
3 changed files
with
38 additions
and
45 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