Skip to content

Commit

Permalink
snapshots of llvm build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Jan 4, 2024
1 parent b6f2188 commit c26761e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/snapshot/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
snapshot.zip filter=lfs diff=lfs merge=lfs -text
2 changes: 2 additions & 0 deletions tests/snapshot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
llvm-cmake/
llvm-gn/
34 changes: 34 additions & 0 deletions tests/snapshot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Snapshot tests

This directory contains real-world outputs from tools that generate Ninja files.

Because these outputs are large, they aren't checked in to the Ninja tree.
Instead there is a `snapshot.zip` stored with Git LFS. Unpack it with

```
$ unzip snapshot.zip
```

## Test data

### llvm-cmake

`llvm-cmake/` contains LLVM build files generated by CMake.

https://llvm.org/docs/GettingStarted.html (note they have a CMake-specific page
that has instructions that don't work(?!))

```
$ cmake -G Ninja -B build -S llvm -DCMAKE_BUILD_TYPE=Release
```

### llvm-gn

`llvm-gn/` contains LLVM build files generated by the GN build system.

Read llvm/utils/gn/README.rst in LLVM checkout for more, but in brief.

```
$ llvm/utils/gn/get.py
$ llvm/utils/gn/gn.py gen out/gn
```
3 changes: 3 additions & 0 deletions tests/snapshot/snapshot.zip
Git LFS file not shown

0 comments on commit c26761e

Please sign in to comment.