Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/llvm-libc/readme.txt
6162 views
1
llvm's libc
2
-----------
3
4
These files are from the llvm-project based on release 21.1.8.
5
6
We maintain a local fork of llvm-project that contains any Emscripten
7
specific patches:
8
9
https://github.com/emscripten-core/llvm-project
10
11
The current patch is based on the emscripten-libs-21 branch.
12
13
Currently in production, we do not use LLVM's libc directly yet, but libcxx uses
14
a subset of headers from libc. So libcxx directly depends on the following
15
directories:
16
- libc/hdr
17
- libc/include/llvm-libc-macros
18
- libc/include/llvm-libc-types
19
- libc/shared
20
- libc/src/__support
21
22
In addition, we are experimenting with using llvm-libc in overlay mode. You can
23
enable this by running with `EMCC_CFLAGS=-lllvmlibc`. See
24
https://libc.llvm.org/overlay_mode.html for more details.
25
26
Update Instructions
27
-------------------
28
29
Run `system/lib/update_libcxx.py path/to/llvm-project`
30
Run `system/lib/update_llvm_libc.py path/to/llvm-project`
31
32
Modifications
33
-------------
34
35
For a list of changes from upstream see the libcxx files that are part of:
36
37
https://github.com/llvm/llvm-project/compare/llvmorg-21.1.8...emscripten-core:emscripten-libs-21
38
39