Skip to content

Bump clang-sys to 0.17.0 #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2017
Merged

Bump clang-sys to 0.17.0 #690

merged 1 commit into from
May 8, 2017

Conversation

KyleMayes
Copy link
Contributor

It turns out that some versions of Clang don't have #include <...> search starts here: in their output (KyleMayes/clang-sys#54).

I changed the storage type of the include search paths in clang-sys from Vec<PathBuf> to Option<Vec<PathBuf>> to reflect the possibility that finding and parsing the include search paths might fail.

options.clang_args.push("-isystem".to_owned());
options.clang_args.push(path);
if let Some(cpp_search_paths) = clang.cpp_search_paths {
for path in cpp_search_paths.into_iter() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This already existed, but the into_iter isn't necessary right? It should be automatically called by a for loop, correct?

@fitzgen
Copy link
Member

fitzgen commented May 8, 2017

@bors-servo r+

Thanks @KyleMayes !

@bors-servo
Copy link

📌 Commit a33fb57 has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit a33fb57 with merge 12f9852...

bors-servo pushed a commit that referenced this pull request May 8, 2017
Bump clang-sys to 0.17.0

It turns out that some versions of Clang don't have `#include <...> search starts here:` in their output (KyleMayes/clang-sys#54).

I changed the storage type of the include search paths in `clang-sys` from `Vec<PathBuf>` to `Option<Vec<PathBuf>>` to reflect the possibility that finding and parsing the include search paths might fail.
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 12f9852 to master...

@bors-servo bors-servo merged commit a33fb57 into rust-lang:master May 8, 2017
@KyleMayes KyleMayes deleted the clang-sys branch May 17, 2017 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants