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

[Rust] Improve the error reporting in build.rs files by using anyhow. #6401

Merged
merged 7 commits into from Sep 10, 2020

Conversation

jroesch
Copy link
Member

@jroesch jroesch commented Sep 4, 2020

This improves errors when build.rs scripts fail. cc @robo-corg, @mwillsey and @areusch

rust/tvm-sys/build.rs Outdated Show resolved Hide resolved
rust/tvm-sys/build.rs Outdated Show resolved Hide resolved
rust/tvm-sys/build.rs Outdated Show resolved Hide resolved
jroesch and others added 7 commits September 9, 2020 23:40
Instead of just unwrapping use Result on main function, and use anyhow to add error context.
Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>
@tqchen tqchen merged commit b05aa96 into apache:master Sep 10, 2020
@tqchen
Copy link
Member

tqchen commented Sep 10, 2020

Thanks @imalsogreg @adelbertc @jroesch !

kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 17, 2020
…apache#6401)

* Improve build.rs error handling.

Instead of just unwrapping use Result on main function, and use anyhow to add error context.

* Remove NDArray and Python changes

* Format

* Fix build.rs

* Apply suggestions from code review

Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>

* Format

* Fix build.rs

Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 18, 2020
…apache#6401)

* Improve build.rs error handling.

Instead of just unwrapping use Result on main function, and use anyhow to add error context.

* Remove NDArray and Python changes

* Format

* Fix build.rs

* Apply suggestions from code review

Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>

* Format

* Fix build.rs

Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 18, 2020
…apache#6401)

* Improve build.rs error handling.

Instead of just unwrapping use Result on main function, and use anyhow to add error context.

* Remove NDArray and Python changes

* Format

* Fix build.rs

* Apply suggestions from code review

Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>

* Format

* Fix build.rs

Co-authored-by: Greg Hale <ImAlsoGreg@gmail.com>
@jroesch jroesch deleted the improve-build-rs branch February 4, 2021 04:42
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.

None yet

4 participants