diff options
| author | Michael Forney <mforney@mforney.org> | 2018-02-15 23:53:02 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2018-02-16 02:52:34 -0800 |
| commit | e741f39ad218e529fdb69e3c877ad809ad62b35f (patch) | |
| tree | 7fd706b23bf8865a162fba93f336bd955146fc2e /pkg | |
| parent | c554ead8d85a452d239e09ddb10157e53476cbea (diff) | |
fribidi: Build code generation tools with the host toolchain
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/fribidi/gen.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/fribidi/gen.lua b/pkg/fribidi/gen.lua index 88f7fc3b..60c73afd 100644 --- 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 |
