Handle builds outside nix
This commit is contained in:
parent
7b15ea828c
commit
91023adad3
|
@ -337,7 +337,10 @@ fn format_address_table(m: &HashMap<String, (u32, bool)>) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let version_string = format!("fox32asm {} ({})", env!("NIX_SEMVER"), env!("NIX_GIT_SHA_SHORT"));
|
let version_string = match (option_env!("NIX_SEMVER"), option_env!("NIX_GIT_SHA_SHORT")) {
|
||||||
|
(Some(semver), Some(sha)) => format!("fox32asm {semver} ({sha})"),
|
||||||
|
_ => format!("fox32asm (dev)"),
|
||||||
|
};
|
||||||
println!("{}", version_string);
|
println!("{}", version_string);
|
||||||
|
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user