mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:22:40 +08:00
build.rs: remove dead code
This commit is contained in:
parent
68d1207d53
commit
10891d2985
12
build.rs
12
build.rs
@ -4,7 +4,6 @@ use rsconf::{LinkType, Target};
|
||||
use std::env;
|
||||
use std::error::Error;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Stdio;
|
||||
|
||||
fn main() {
|
||||
for key in ["DOCDIR", "DATADIR", "SYSCONFDIR", "BINDIR", "LOCALEDIR"] {
|
||||
@ -112,17 +111,6 @@ fn detect_cfgs(target: Target) {
|
||||
}
|
||||
}
|
||||
|
||||
fn compiles(file: &str) -> bool {
|
||||
let mut command = cc::Build::new()
|
||||
.flag("-fsyntax-only")
|
||||
.get_compiler()
|
||||
.to_command();
|
||||
command.arg(file);
|
||||
command.stdout(Stdio::null());
|
||||
command.stderr(Stdio::null());
|
||||
command.status().unwrap().success()
|
||||
}
|
||||
|
||||
/// Detect if we're being compiled for a BSD-derived OS, allowing targeting code conditionally with
|
||||
/// `#[cfg(feature = "bsd")]`.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user