Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1765746 - Tweak contain bitflag definition order to avoid static …
…constructors. r=dshin This has no behavior change otherwise. The STRICT definition depended on SIZE, which was defined later. That's fine in Rust, but in C++ it causes the initialization to be dynamic because it doesn't have the definition of SIZE yet (ugh). This is the fix for the regression, though the following patch turns on constexpr support in cbindgen, which would've caught this at build-time, and guarantees that we don't have extra static constructors. Differential Revision: https://phabricator.services.mozilla.com/D144316
- Loading branch information