<?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>313560</bug_id>
          
          <creation_ts>2026-04-28 11:37:45 -0700</creation_ts>
          <short_desc>[CMake] Set --std=c++17 for the libatomic probe</short_desc>
          <delta_ts>2026-04-29 01:41:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CMake</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="Adrian Perez">aperez</assigned_to>
          <cc>aperez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2205430</commentid>
    <comment_count>0</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-28 11:37:45 -0700</bug_when>
    <thetext>The atomic source test uses std::atomic&lt;std::optional&lt;double&gt;&gt;, which
requires C++17. check_cxx_source_compiles inherits the compiler&apos;s
default C++ standard, and on compilers that default to C++14 or
earlier the probe fails with &quot;no member named &apos;optional&apos; in namespace
&apos;std&apos;&quot;. Pre-312202@main this was silent and the build proceeded
(builtins suffice on arm64 without libatomic). 312202@main promoted
the failure to FATAL_ERROR, which broke the CMake build on those
compilers.

Set CMAKE_REQUIRED_FLAGS to --std=c++2b around the probe, mirroring
the existing pattern at the std::filesystem detection a few lines
below. unset() restores the previous state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205431</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-28 11:37:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/175777090&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205434</commentid>
    <comment_count>2</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2026-04-28 11:47:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63816</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205450</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-28 13:11:58 -0700</bug_when>
    <thetext>Committed 312222@main (cfb69a99823a): &lt;https://commits.webkit.org/312222@main&gt;

Reviewed commits have been landed. Closing PR #63816 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205479</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-04-28 14:22:48 -0700</bug_when>
    <thetext>Reopening for a follow-up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205487</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-04-28 14:32:01 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63832</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205667</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-29 00:09:47 -0700</bug_when>
    <thetext>Committed 312266@main (07ed81f30130): &lt;https://commits.webkit.org/312266@main&gt;

Reviewed commits have been landed. Closing PR #63832 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2205688</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-29 01:41:21 -0700</bug_when>
    <thetext>Committed 305877.462@webkitglib/2.52 (b7eabfc1efa4): &lt;https://commits.webkit.org/305877.462@webkitglib/2.52&gt;

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

    </bug>

</bugzilla>