2021-07-07 04:14:20 -05:00
|
|
|
#!/usr/bin/env bash
|
2022-03-20 10:55:21 -05:00
|
|
|
#![deny(unsafe_code)] /*This line is ignored by bash
|
2021-07-07 04:14:20 -05:00
|
|
|
# This block is ignored by rustc
|
|
|
|
set -e
|
|
|
|
echo "[BUILD] y.rs" 1>&2
|
2022-03-20 10:55:21 -05:00
|
|
|
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1
|
2021-07-07 04:14:20 -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-06 09:26:56 -05:00
|
|
|
//! $ rustc y.rs -o y.bin
|
|
|
|
//! $ ./y.bin
|
2021-07-07 04:14:20 -05:00
|
|
|
//! ```
|
|
|
|
//!
|
|
|
|
//! # Naming
|
|
|
|
//!
|
|
|
|
//! The name `y.rs` was chosen to not conflict with rustc's `x.py`.
|
|
|
|
|
2022-02-23 04:49:34 -06:00
|
|
|
#[path = "build_system/mod.rs"]
|
|
|
|
mod build_system;
|
2021-07-07 04:14:20 -05:00
|
|
|
|
|
|
|
fn main() {
|
2022-02-23 04:49:34 -06:00
|
|
|
build_system::main();
|
2021-07-07 04:14:20 -05:00
|
|
|
}
|