xref: /aosp_15_r20/prebuilts/clang-tools/README.md (revision bed243d3d9cd544cfb038bfa7be843dedc6e6bf7)
1*bed243d3SAndroid Build Coastguard WorkerPrebuilts for Clang/LLVM-based tools used in Android
2*bed243d3SAndroid Build Coastguard Worker====================================================
3*bed243d3SAndroid Build Coastguard Worker
4*bed243d3SAndroid Build Coastguard WorkerFor the latest version of this doc, please make sure to visit:
5*bed243d3SAndroid Build Coastguard Worker[Android Clang/LLVM-based Tools Readme Doc](https://android.googlesource.com/platform/prebuilts/clang-tools/+/master/README.md)
6*bed243d3SAndroid Build Coastguard Worker
7*bed243d3SAndroid Build Coastguard WorkerBuild Instructions
8*bed243d3SAndroid Build Coastguard Worker------------------
9*bed243d3SAndroid Build Coastguard Worker
10*bed243d3SAndroid Build Coastguard Worker```
11*bed243d3SAndroid Build Coastguard Worker$ mkdir clang-tools && cd clang-tools
12*bed243d3SAndroid Build Coastguard Worker$ repo init -u https://android.googlesource.com/platform/manifest -b clang-tools
13*bed243d3SAndroid Build Coastguard Worker$ repo sync -c
14*bed243d3SAndroid Build Coastguard Worker$ OUT_DIR=out prebuilts/clang-tools/build-prebuilts.sh
15*bed243d3SAndroid Build Coastguard Worker```
16*bed243d3SAndroid Build Coastguard Worker
17*bed243d3SAndroid Build Coastguard WorkerUpdate Prebuilts
18*bed243d3SAndroid Build Coastguard Worker----------------
19*bed243d3SAndroid Build Coastguard Worker
20*bed243d3SAndroid Build Coastguard WorkerFrom an AOSP main tree or a clang-tools tree run:
21*bed243d3SAndroid Build Coastguard Worker
22*bed243d3SAndroid Build Coastguard Worker```
23*bed243d3SAndroid Build Coastguard Worker$ prebuilts/clang-tools/update-prebuilts.sh \
24*bed243d3SAndroid Build Coastguard Worker    <build-id from go/ab/aosp-clang-tools>
25*bed243d3SAndroid Build Coastguard Worker```
26