mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: restore custom build profiles in RETH_BUILD_PROFILE (#13906)
This commit is contained in:
@ -29,7 +29,8 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
println!("cargo:rustc-env=VERGEN_GIT_SHA_SHORT={}", &sha[..8]);
|
||||
|
||||
// Set the build profile
|
||||
let profile = env::var("PROFILE")?;
|
||||
let out_dir = env::var("OUT_DIR").unwrap();
|
||||
let profile = out_dir.rsplit(std::path::MAIN_SEPARATOR).nth(3).unwrap();
|
||||
println!("cargo:rustc-env=RETH_BUILD_PROFILE={profile}");
|
||||
|
||||
// Set formatted version strings
|
||||
|
||||
Reference in New Issue
Block a user