[all-commits] [llvm/llvm-project] 860e88: [libc++] Make __config_site modular (#134699)

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Apr 18 06:06:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 860e88411d94b9e83cf9524d05b30a3d2d221b2c
      https://github.com/llvm/llvm-project/commit/860e88411d94b9e83cf9524d05b30a3d2d221b2c
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2025-04-18 (Fri, 18 Apr 2025)

  Changed paths:
    M libcxx/docs/Contributing.rst
    M libcxx/include/CMakeLists.txt
    R libcxx/include/module.modulemap
    A libcxx/include/module.modulemap.in
    A libcxx/test/libcxx/Wnon_modular_include_in_module.compile.pass.cpp
    M libcxx/test/libcxx/headers_in_modulemap.sh.py
    M libcxx/test/libcxx/lint/lint_headers.sh.py
    M libcxx/utils/libcxx/header_information.py

  Log Message:
  -----------
  [libc++] Make __config_site modular (#134699)

This patch makes the __config_site header modular, which solves various
problems with non-modular headers. This requires going back to
generating the modulemap file, since we only know how to make
__config_site modular when we're not using the per-target runtime dir.

The patch also adds a test that we support
-Wnon-modular-include-in-module, which warns about non-modular includes
from modules.

---------

Co-authored-by: Konstantin Varlamov <varconst at apple.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list