From 2df90914df3e9e1197b267791024cb97b5638d7f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 22 Jun 2020 22:41:35 -0700 Subject: Add blake3 hashes to fspec files --- pkg/fspec-sync/gen.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkg/fspec-sync/gen.lua') 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'}) -- cgit v1.2.3