]> git.lizzy.rs Git - rust.git/blob - y.rs
Don't require git user to be configured for testing rust
[rust.git] / y.rs
1 #!/usr/bin/env bash
2 #![deny(unsafe_code)] /*This line is ignored by bash
3 # This block is ignored by rustc
4 set -e
5 echo "[BUILD] y.rs" 1>&2
6 rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021
7 exec ${0/.rs/.bin} $@
8 */
9
10 //! The build system for cg_clif
11 //!
12 //! # Manual compilation
13 //!
14 //! If your system doesn't support shell scripts you can manually compile and run this file using
15 //! for example:
16 //!
17 //! ```shell
18 //! $ rustc y.rs -o y.bin
19 //! $ ./y.bin
20 //! ```
21 //!
22 //! # Naming
23 //!
24 //! The name `y.rs` was chosen to not conflict with rustc's `x.py`.
25
26 #[path = "build_system/mod.rs"]
27 mod build_system;
28
29 fn main() {
30     build_system::main();
31 }