2021-06-08 07:33:25 -05:00
|
|
|
#!/usr/bin/env bash
|
2022-03-16 06:05:02 -05:00
|
|
|
#![deny(unsafe_code)] /*This line is ignored by bash
|
2021-06-08 07:33:25 -05:00
|
|
|
# This block is ignored by rustc
|
|
|
|
set -e
|
|
|
|
echo "[BUILD] y.rs" 1>&2
|
2022-10-28 04:54:05 -05:00
|
|
|
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021
|
2021-06-08 07:33:25 -05:00
|
|
|
exec ${0/.rs/.bin} $@
|
|
|
|
*/
|
|
|
|
|
|
|
|
//! The build system for cg_clif
|
|
|
|
//!
|
|
|
|
//! # Manual compilation
|
|
|
|
//!
|
|
|
|
//! If your system doesn't support shell scripts you can manually compile and run this file using
|
|
|
|
//! for example:
|
|
|
|
//!
|
|
|
|
//! ```shell
|
2021-08-04 02:23:27 -05:00
|
|
|
//! $ rustc y.rs -o y.bin
|
|
|
|
//! $ ./y.bin
|
2021-06-08 07:33:25 -05:00
|
|
|
//! ```
|
|
|
|
//!
|
|
|
|
//! # Naming
|
|
|
|
//!
|
|
|
|
//! The name `y.rs` was chosen to not conflict with rustc's `x.py`.
|
|
|
|
|
2022-01-09 12:30:07 -06:00
|
|
|
#[path = "build_system/mod.rs"]
|
|
|
|
mod build_system;
|
2021-06-08 07:33:25 -05:00
|
|
|
|
|
|
|
fn main() {
|
2022-01-09 12:30:07 -06:00
|
|
|
build_system::main();
|
2021-06-08 07:33:25 -05:00
|
|
|
}
|