<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>281156</bug_id>
          
          <creation_ts>2024-10-09 12:00:05 -0700</creation_ts>
          <short_desc>[ANGLE] Allow envvar to gate ASSERT at runtime</short_desc>
          <delta_ts>2024-11-07 16:13:52 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>ANGLE</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="zak ridouh">zakr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>djg</cc>
    
    <cc>fujii</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2066596</commentid>
    <comment_count>0</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2024-10-09 12:00:05 -0700</bug_when>
    <thetext>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&apos;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)`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066598</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-09 12:00:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/137613945&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066601</commentid>
    <comment_count>2</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2024-10-09 12:04:39 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34919</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066620</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-10-09 13:25:07 -0700</bug_when>
    <thetext>FWIW, We have ENABLE_WEBKIT_CONJECTURE_ASSERT env var for WebKit. bug#277938
I don&apos;t mean you have to use the same env var.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2073620</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-11-07 15:23:32 -0800</bug_when>
    <thetext>Committed 286306@main (0e0d62f0b2e8): &lt;https://commits.webkit.org/286306@main&gt;

Reviewed commits have been landed. Closing PR #34919 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2073638</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-11-07 16:13:52 -0800</bug_when>
    <thetext>Committed 286307@main (aff0b1e3ced7): &lt;https://commits.webkit.org/286307@main&gt;

Reviewed commits have been landed. Closing PR #36353 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>