commit: e741f39ad218e529fdb69e3c877ad809ad62b35f
parent c554ead8d85a452d239e09ddb10157e53476cbea
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 15 Feb 2018 23:53:02 -0800
fribidi: Build code generation tools with the host toolchain
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/pkg/fribidi/gen.lua b/pkg/fribidi/gen.lua
@@ -7,6 +7,15 @@ cflags{
}
sub('tools.ninja', function()
+ toolchain 'host'
+ cflags{
+ -- technically, this should use a separate host config, but most
+ -- of the stuff in config.h seems pretty standard
+ '-D HAVE_CONFIG_H',
+ '-I $dir',
+ '-I $outdir/include',
+ '-I $srcdir/lib',
+ }
cc('gen.tab/packtab.c')
exe('gen-unicode-version', {'gen.tab/gen-unicode-version.c'})
for _, t in ipairs{'bidi-type', 'joining-type', 'arabic-shaping', 'mirroring', 'brackets', 'brackets-type'} do