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

[Merged by Bors] - Fix release builds: Move asserts under #[cfg(debug_assertions)] #4871

Closed
wants to merge 1 commit into from

Conversation

james7132
Copy link
Member

Objective

debug_assert! macros must still compile properly in release mode due to how they're implemented. This is causing release builds to fail.

Solution

Change them to assert! macros inside #[cfg(debug_assertions)] blocks.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior P-Critical This must be fixed immediately or contributors or users will be severely impacted labels May 30, 2022
@alice-i-cecile
Copy link
Member

Fixes the failure introduced by #4723.

@alice-i-cecile alice-i-cecile added the A-ECS Entities, components, systems, and events label May 30, 2022
@alice-i-cecile
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request May 30, 2022
# Objective
`debug_assert!` macros must still compile properly in release mode due to how they're implemented. This is causing release builds to fail.

## Solution
Change them to `assert!` macros inside `#[cfg(debug_assertions)]` blocks.
@bors bors bot changed the title Fix release builds: Move asserts under #[cfg(debug_assertions)] [Merged by Bors] - Fix release builds: Move asserts under #[cfg(debug_assertions)] May 30, 2022
@bors bors bot closed this May 30, 2022
james7132 added a commit to james7132/bevy that referenced this pull request Jun 7, 2022
…engine#4871)

# Objective
`debug_assert!` macros must still compile properly in release mode due to how they're implemented. This is causing release builds to fail.

## Solution
Change them to `assert!` macros inside `#[cfg(debug_assertions)]` blocks.
@james7132 james7132 deleted the fix-release branch June 22, 2022 08:19
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…engine#4871)

# Objective
`debug_assert!` macros must still compile properly in release mode due to how they're implemented. This is causing release builds to fail.

## Solution
Change them to `assert!` macros inside `#[cfg(debug_assertions)]` blocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect behavior P-Critical This must be fixed immediately or contributors or users will be severely impacted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants