]> git.proxmox.com Git - wasi-libc.git/commitdiff
Exclude C++ headers from the generated include-all.c program.
authorDan Gohman <dev@sunfishcode.online>
Fri, 6 May 2022 01:04:14 +0000 (18:04 -0700)
committerDan Gohman <dev@sunfishcode.online>
Fri, 6 May 2022 01:52:14 +0000 (18:52 -0700)
The order that things happen in appears to have changed, and the
include-all.c script is now generated at a time when there can be
C++ headers in the sysroot, so adjust the script to exclude C++
headers.

Makefile

index 44acdee993cf9c99a72b2773dac92a81f4337e7c..d104a3222b3ad3d68a8f8396e34da6462bd3f9d7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -513,10 +513,10 @@ check-symbols: startup_files libc
            > "$(SYSROOT_LIB)/libc.imports"
 
        #
-       # Generate a test file that includes all public header files.
+       # Generate a test file that includes all public header files.
        #
        cd "$(SYSROOT_INC)" && \
-         for header in $$(find . -type f -not -name mman.h -not -name signal.h -not -name times.h -not -name resource.h |grep -v /bits/); do \
+         for header in $$(find . -type f -not -name mman.h -not -name signal.h -not -name times.h -not -name resource.h |grep -v /bits/ |grep -v /c++/); do \
              echo '#include <'$$header'>' | sed 's/\.\///' ; \
        done |LC_ALL=C sort >$(SYSROOT_SHARE)/include-all.c ; \
        cd - >/dev/null