Skip to content

Commit

Permalink
Try llvmorg-16.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceForstall committed Sep 7, 2023
1 parent 505caf2 commit 0c1a1ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion coredistools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resources:
variables:
LLVMRepositoryUri: https://github.com/llvm/llvm-project.git
LLVMSourceBundle: llvm-project.bundle
LLVMSourceVersion: llvmorg-16.0.3
LLVMSourceVersion: llvmorg-16.0.6

jobs:

Expand Down
20 changes: 9 additions & 11 deletions doc/building-coredistools.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd jitutils

2. Checkout the LLVM project repository into a subdirectory named src/llvm-project:
```
git clone --depth 1 --branch llvmorg-16.0.1 https://github.com/llvm/llvm-project.git src\llvm-project
git clone --depth 1 --branch llvmorg-16.0.6 https://github.com/llvm/llvm-project.git src\llvm-project
```

3. Build `llvm-tblgen.exe`:
Expand Down Expand Up @@ -63,24 +63,24 @@ cd jitutils

2. Checkout the LLVM project repository:
```
git clone --depth 1 --branch llvmorg-16.0.1 https://github.com/llvm/llvm-project.git src/llvm-project
git clone --depth 1 --branch llvmorg-16.0.6 https://github.com/llvm/llvm-project.git src/llvm-project
```

3. Download LLVM release from GitHub:

```
python3 eng/download-llvm-release.py -release llvmorg-16.0.1 -os linux
python3 eng/download-llvm-release.py -release llvmorg-16.0.6 -os linux
```

4. Locate under the current directory file `llvm-tblgen`
```
find -name llvm-tblgen
./clang+llvm-16.0.1-x86_64-linux-gnu-ubuntu-18.04/bin/llvm-tblgen
./clang+llvm-16.0.6-x86_64-linux-gnu-ubuntu-18.04/bin/llvm-tblgen
```
and add its parent directory location to the `PATH`:

```
export PATH=$(pwd)/clang+llvm-16.0.1-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH
export PATH=$(pwd)/clang+llvm-16.0.6-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH
```

5. Build `libcoredistools.so` for Linux x64:
Expand All @@ -97,17 +97,15 @@ find ./artifacts -name libcoredistools.so

6. Build `libcoredistools.so` for Linux arm64 under Docker:

TODO: update these Docker images with CBL-Mariner images.

```
docker run -it --rm --entrypoint /bin/bash -v ~/git/jitutils:/opt/code -w /opt/code -u $(id -u):$(id -g) mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-arm64-20220312201346-b2c2436
export PATH=$(pwd)/clang+llvm-16.0.1-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH
docker run -it --rm --entrypoint /bin/bash -v ~/git/jitutils:/opt/code -w /opt/code -u $(id -u):$(id -g) mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64
export PATH=$(pwd)/clang+llvm-16.0.6-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH
./build-coredistools.sh linux-arm64 /crossrootfs/arm64
```

7. Build `libcoredistools.so` for Linux arm under Docker:
```
docker run -it --rm --entrypoint /bin/bash -v ~/git/jitutils:/opt/code -w /opt/code -u $(id -u):$(id -g) mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-20220312201346-b9de666
export PATH=$(pwd)/clang+llvm-16.0.1-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH
docker run -it --rm --entrypoint /bin/bash -v ~/git/jitutils:/opt/code -w /opt/code -u $(id -u):$(id -g) mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm
export PATH=$(pwd)/clang+llvm-16.0.6-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH
./build-coredistools.sh linux-arm /crossrootfs/arm
```

0 comments on commit 0c1a1ea

Please sign in to comment.