[libc] support fully OOT build (#101287)
commitc0efcc08e67325dc813d9acb7cc3560fd444fc8f
authorSchrodinger ZHU Yifan <yifanzhu@rochester.edu>
Wed, 20 Nov 2024 19:12:25 +0000 (20 14:12 -0500)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 19:12:25 +0000 (20 14:12 -0500)
tree35168b1470951aee0f02d877d36c8dc9cc5d7d98
parent201f4f6bcccf3f0ac0c9d3e8c484fb2c53bfb016
[libc] support fully OOT build (#101287)

Fully OOT build along with SCUDO:
```
mkdir oot
cp -r cmake libc compiler-rt oot
cp ./llvm/cmake/modules/* ./oot/cmake/Modules/
cd oot
mkdir build
cd build
cmake ../libc -DLIBC_USE_NEW_HEADER_GEN=On -DLLVM_LIBC_FULL_BUILD=On -DLLVM_LIBC_FULL_BUILD=On -DLLVM_LIBC_INCLUDE_SCUDO=On -DCOMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=On -DCOMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED=Off -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DLLVM_LIBC_COMPILER_RT_PATH=../compiler-rt/ -DCOMPILER_RT_STANDALONE_BUILD=On -GNinja -DLLVM_COMPILER_IS_GCC_COMPATIBLE=On -DLLVM_RUNTIMES_BUILD=On
```
libc/CMakeLists.txt
libc/newhdrgen/yaml_to_classes.py [changed mode: 0644->0755]