2021-01-30 03:32:52 +08:00
|
|
|
// Copyright 2016-2021 the Tectonic Project
|
2016-12-08 10:29:54 +08:00
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
2021-03-31 09:50:26 +08:00
|
|
|
use std::env;
|
2019-06-21 23:28:29 +08:00
|
|
|
|
2016-12-07 12:53:20 +08:00
|
|
|
fn main() {
|
2024-03-28 06:57:18 +08:00
|
|
|
// Depend on this file to prevent rebuilding on any change - see #1173 for details
|
|
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
|
|
|
2019-12-23 09:24:37 +08:00
|
|
|
// Re-export $TARGET during the build so that our executable tests know
|
|
|
|
// what environment variable CARGO_TARGET_@TARGET@_RUNNER to check when
|
|
|
|
// they want to spawn off executables.
|
2021-03-31 09:50:26 +08:00
|
|
|
let target = env::var("TARGET").unwrap();
|
2023-01-28 09:08:07 +08:00
|
|
|
println!("cargo:rustc-env=TARGET={target}");
|
2016-12-07 12:53:20 +08:00
|
|
|
}
|