diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-22 22:41:35 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-22 23:33:21 -0700 |
| commit | 2df90914df3e9e1197b267791024cb97b5638d7f (patch) | |
| tree | 16436e8bada6896a03c01c78b834d0b142ae4e66 /pkg/fspec-sync/gen.lua | |
| parent | d94a0753e7ada0fd8ff204b75a6b385188ad80f0 (diff) | |
Add blake3 hashes to fspec files
Diffstat (limited to 'pkg/fspec-sync/gen.lua')
| -rw-r--r-- | pkg/fspec-sync/gen.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/fspec-sync/gen.lua b/pkg/fspec-sync/gen.lua index 6c77199d..b1ccaa11 100644 --- a/pkg/fspec-sync/gen.lua +++ b/pkg/fspec-sync/gen.lua @@ -3,6 +3,15 @@ cflags{ '-isystem $builddir/pkg/b3sum/include', } +sub('host.ninja', function() + set('outdir', '$outdir/host') + toolchain(config.host) + cflags{'-isystem $builddir/pkg/b3sum/include'} + + lib('libcommon.a', {'fatal.c', 'parse.c', 'reallocarray.c'}) + exe('fspec-hash', {'fspec-hash.c', 'libcommon.a', '$builddir/pkg/b3sum/host/libblake3.a'}, {'pkg/b3sum/headers'}) +end) + lib('libcommon.a', {'fatal.c', 'parse.c', 'reallocarray.c'}) exe('fspec-hash', {'fspec-hash.c', 'libcommon.a', '$builddir/pkg/b3sum/libblake3.a'}, {'pkg/b3sum/headers'}) |
