mirror of https://github.com/sharkdp/fd.git
Allow overriding of OUT_DIR in build.rs (#124)
This commit is contained in:
parent
e0eab07881
commit
37def9bb83
3
build.rs
3
build.rs
|
@ -6,7 +6,8 @@ use clap::Shell;
|
||||||
include!("src/app.rs");
|
include!("src/app.rs");
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let outdir = match std::env::var_os("OUT_DIR") {
|
let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
|
||||||
|
let outdir = match var {
|
||||||
None => return,
|
None => return,
|
||||||
Some(outdir) => outdir,
|
Some(outdir) => outdir,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue