Commit 05d8b56
committed
wasi-libc: Deduplicate sources and headers with regards to upstream musl.
Unfortunately some duplicate files must remain in lib/libc/wasi/libc-top-half
because they include internal headers *in the same directory* which have edits
relative to upstream musl. Because C is an amazing language, there is no way to
make it so that e.g. upstream musl's src/stdio/fputc.c includes wasi-libc's
src/stdio/putc.h instead of the upstream putc.h. The preprocessor always
searches the current directory first for quote includes.
Anyway, this still takes us from 2.9M to 1.4M for the combination of
lib/libc/wasi and lib/libc/include/wasm-wasi-musl, so I still call it a win.1 parent 31e7c95 commit 05d8b56
File tree
777 files changed
+650
-44229
lines changed- lib/libc
- include/wasm-wasi-musl
- arpa
- bits
- netinet
- netpacket
- sys
- wasi/libc-top-half/musl
- arch/generic
- bits
- include
- arpa
- netinet
- netpacket
- sys
- src
- complex
- conf
- crypt
- ctype
- dirent
- env
- exit
- fenv
- include
- arpa
- sys
- internal
- legacy
- locale
- math
- misc
- multibyte
- network
- prng
- regex
- search
- signal
- stdio
- stdlib
- string
- thread
- time
- unistd
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
777 files changed
+650
-44229
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
This file was deleted.
0 commit comments