Skip to content

Commit

Permalink
lib: Remove stale TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jul 30, 2018
1 parent 0f9b272 commit d991134
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ impl Builder {
|| name_file.ends_with(".hh")
|| name_file.ends_with(".h++")
}

let clang = clang_sys::support::Clang::find(None, &[]).ok_or_else(|| {
io::Error::new(io::ErrorKind::Other, "Cannot find clang executable")
})?;
Expand Down Expand Up @@ -1625,8 +1625,7 @@ impl Bindings {
if let Some(clang) = clang_sys::support::Clang::find(
None,
&clang_args_for_clang_sys,
)
{
) {
// If --target is specified, assume caller knows what they're doing
// and don't mess with include paths for them
let has_target_arg = options
Expand All @@ -1635,9 +1634,6 @@ impl Bindings {
.rposition(|arg| arg.starts_with("--target"))
.is_some();
if !has_target_arg {
// TODO: distinguish C and C++ paths? C++'s should be enough, I
// guess.

// Whether we are working with C or C++ inputs.
let is_cpp = args_are_cpp(&options.clang_args);
let search_paths = if is_cpp {
Expand Down

0 comments on commit d991134

Please sign in to comment.