1 2 3 4 5 6 7 8 9 10 11 12 13
// This file is part of Soil. // Copyright (C) Soil contributors. // Copyright (C) Parity Technologies (UK) Ltd. // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 use std::env; fn main() { if let Ok(profile) = env::var("PROFILE") { println!("cargo:rustc-cfg=build_profile=\"{}\"", profile); } }