[Webkit-unassigned] [Bug 281156] New: [ANGLE] Allow envvar to gate ASSERT at runtime

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 9 12:00:05 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=281156

            Bug ID: 281156
           Summary: [ANGLE] Allow envvar to gate ASSERT at runtime
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: ANGLE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zakr at apple.com
                CC: djg at apple.com, kbr at google.com, kkinnunen at apple.com,
                    webkit-bug-importer at group.apple.com

Add a `ANGLE_ASSERTS_OFF` environment variable that allows us to disable asserts at runtime regardless of how ANGLE was built.

This is necessary due to how some of our build systems work, where we need to be able to disable asserts at runtime regardless of if we built ANGLE with the `ANGLE_ASSERT_ALWAYS_ON` or `ANGLE_ENABLE_ASSERTS` flag set.

We cache the value from the `envvar`, so that we don't incur a `getenv` check on every ASSERT. Additionally, this will not impact release builds as this function is gated by a guard: `#if defined(ANGLE_ENABLE_ASSERTS)`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241009/89c0d206/attachment.htm>


More information about the webkit-unassigned mailing list