<?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>322271</bug_id>
          
          <creation_ts>2026-08-21 06:19:27 -0700</creation_ts>
          <short_desc>Windows Swift requires vcruntime modulemap override</short_desc>
          <delta_ts>2026-08-26 02:14:13 -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>WebKit Misc.</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>adrian_taylor</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2242526</commentid>
    <comment_count>0</comment_count>
    <who name="">adrian_taylor</who>
    <bug_when>2026-08-21 06:19:27 -0700</bug_when>
    <thetext>To get our Swift code working on Windows, we need to override the limited vcruntime modulemap provided as part of the Windows Swift SDK to make it a bit more complete.

    1. The Swift SDK&apos;s vcruntime.modulemap wraps the MSVC STL in a clang
       module whose yvals_core.h lives in an explicit submodule, so the
       __cpp_lib_* feature-test macros never become visible to headers that
       reach &lt;version&gt; through a module import. WTF/simdutf then mix
       pre-C++20 and C++23 preprocessor paths. Seed the macros through the
       platform-swift-args.resp response file (generate-platform-args
       --stl-feature-macros); they must not go on the command line, which
       already sits near the 32767-char CreateProcess limit that ninja hits
       before swiftc-wrapper can expand its own response file.
    
    2. The same modulemap names only two of the STL&apos;s __msvc_*.hpp internal
       headers, leaving e.g. std::views::transform (__msvc_ranges_to.hpp)
       invisible at use sites. Generate an amended modulemap listing all of
       them and mount it over the MSVC include dir with a VFS overlay.
   

This problem has been reported upstream to the relevant Swift folks as rdar://185507163.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242527</commentid>
    <comment_count>1</comment_count>
    <who name="">adrian_taylor</who>
    <bug_when>2026-08-21 06:20:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/72124</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2243790</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-08-26 02:13:44 -0700</bug_when>
    <thetext>Committed 319854@main (4e646d190c3f): &lt;https://commits.webkit.org/319854@main&gt;

Reviewed commits have been landed. Closing PR #72124 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2243791</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-08-26 02:14:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/185874593&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>