Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a `mach` argument to enable debug assertions #14009
Closed
Labels
Comments
|
Please make a comment here if you intend to work on this issue. Thank you! |
|
I will work on this. I have a question. There are two places where |
|
Yep! |
|
Since we're removing the environment variable, we also need a follow-up PR to saltfs to revert the PR adding the env var to the build environment. |
bors-servo
added a commit
that referenced
this issue
Nov 5, 2016
Add --with-debug-assertions flag for Mach I tested out building a release with the flag and added a `debug_assert!(false)` in `fn main` and it panicked. <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14009 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they are manually tested <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14025) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Nov 6, 2016
Add --with-debug-assertions flag for Mach I tested out building a release with the flag and added a `debug_assert!(false)` in `fn main` and it panicked. <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14009 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they are manually tested <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14025) <!-- Reviewable:end -->
|
Still need a follow-up to saltfs. |
bors-servo
added a commit
to servo/saltfs
that referenced
this issue
Nov 6, 2016
Revert "Add an environment variable to tell mach to build with debug … …assertions." fixes servo/servo#14009 This reverts commit 97d8768. Follow up to servo/servo#14025 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/534) <!-- Reviewable:end -->
bors-servo
added a commit
to servo/saltfs
that referenced
this issue
Nov 6, 2016
Remove the environment variables for debug assertions …assertions." fixes servo/servo#14009 This reverts commit 97d8768. Follow up to servo/servo#14025 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/534) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow up from #13387.
machcurrently honors theSERVO_ENABLE_DEBUG_ASSERTIONSenvironment variable to enable debug assertions. To make this option more discoverable and better documented, add amachflag that does the same thing.IMO, we can also remove the code that checks for and acts on the environment variable.
Files:
linux-rel-wptandlinux-rel-cssbuilders)Tests:
cc @emilio @Ms2ger