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