Skip to content
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

provide more information when bindgen fails #16880

Merged
merged 1 commit into from May 16, 2017

Conversation

@froydnj
Copy link
Contributor

froydnj commented May 15, 2017

Providing the flags we passed into clang can be informative for double-checking that we set everything up correctly.

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).

This change is Reviewable

@emilio
emilio approved these changes May 15, 2017
Copy link
Member

emilio left a comment

r=me, with that nit

Ok(bindings) => bindings.to_string(),
Err(_) => {
println!("Failed to generate bindings, flags: {:?}", command_line_opts);
panic!("Unable to generate bindings");

This comment has been minimized.

Copy link
@emilio

emilio May 15, 2017

Member

You can just panic!("Failed to generate bindings, flags: {:?}", command_line_opts).

Providing the flags we passed into clang can be informative for
double-checking that we set everything up correctly.
@froydnj froydnj force-pushed the froydnj:bindgen-informative-failure branch from 89d02c5 to 22db4b4 May 15, 2017
@froydnj
Copy link
Contributor Author

froydnj commented May 15, 2017

Thanks, fixed.

@emilio
Copy link
Member

emilio commented May 15, 2017

@bors-servo r+

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented May 15, 2017

📌 Commit 22db4b4 has been approved by emilio

@highfive highfive assigned emilio and unassigned metajack May 15, 2017
@bors-servo
Copy link
Contributor

bors-servo commented May 15, 2017

💡 This pull request was already approved, no need to approve it again.

  • There's another pull request that is currently being tested, blocking this pull request: #16295
@bors-servo
Copy link
Contributor

bors-servo commented May 15, 2017

📌 Commit 22db4b4 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2017

Testing commit 22db4b4 with merge 0388e11...

bors-servo added a commit that referenced this pull request May 16, 2017
provide more information when bindgen fails

Providing the flags we passed into clang can be informative for double-checking that we set everything up correctly.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16880)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 16, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: emilio
Pushing 0388e11 to master...

@bors-servo bors-servo merged commit 22db4b4 into servo:master May 16, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.