]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | #!/usr/bin/env bash |
5e7ed085 | 2 | #![deny(unsafe_code)] /*This line is ignored by bash |
136023e0 XL |
3 | # This block is ignored by rustc |
4 | set -e | |
5 | echo "[BUILD] y.rs" 1>&2 | |
49aad941 | 6 | rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021 |
136023e0 XL |
7 | exec ${0/.rs/.bin} $@ |
8 | */ | |
9 | ||
49aad941 FG |
10 | #![warn(rust_2018_idioms)] |
11 | #![warn(unused_lifetimes)] | |
12 | #![warn(unreachable_pub)] | |
13 | ||
136023e0 XL |
14 | //! The build system for cg_clif |
15 | //! | |
16 | //! # Manual compilation | |
17 | //! | |
18 | //! If your system doesn't support shell scripts you can manually compile and run this file using | |
19 | //! for example: | |
20 | //! | |
21 | //! ```shell | |
94222f64 XL |
22 | //! $ rustc y.rs -o y.bin |
23 | //! $ ./y.bin | |
136023e0 XL |
24 | //! ``` |
25 | //! | |
26 | //! # Naming | |
27 | //! | |
28 | //! The name `y.rs` was chosen to not conflict with rustc's `x.py`. | |
29 | ||
5e7ed085 FG |
30 | #[path = "build_system/mod.rs"] |
31 | mod build_system; | |
136023e0 XL |
32 | |
33 | fn main() { | |
5e7ed085 | 34 | build_system::main(); |
136023e0 | 35 | } |