2021-06-08 12:33:25 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-03-16 11:05:02 +00:00
|
|
|
#![deny(unsafe_code)] /*This line is ignored by bash
|
2021-06-08 12:33:25 +00:00
|
|
|
# This block is ignored by rustc
|
|
|
|
set -e
|
|
|
|
echo "[BUILD] y.rs" 1>&2
|
2023-01-13 15:55:17 +00:00
|
|
|
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021 -Cpanic=abort
|
2021-06-08 12:33:25 +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-04 07:23:27 +00:00
|
|
|
//! $ rustc y.rs -o y.bin
|
|
|
|
//! $ ./y.bin
|
2021-06-08 12:33:25 +00:00
|
|
|
//! ```
|
|
|
|
//!
|
|
|
|
//! # Naming
|
|
|
|
//!
|
|
|
|
//! The name `y.rs` was chosen to not conflict with rustc's `x.py`.
|
|
|
|
|
2022-01-09 18:30:07 +00:00
|
|
|
#[path = "build_system/mod.rs"]
|
|
|
|
mod build_system;
|
2021-06-08 12:33:25 +00:00
|
|
|
|
|
|
|
fn main() {
|
2022-01-09 18:30:07 +00:00
|
|
|
build_system::main();
|
2021-06-08 12:33:25 +00:00
|
|
|
}
|