diff options
| author | Michael Forney <mforney@mforney.org> | 2021-04-13 15:57:27 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2021-04-13 16:03:43 -0700 |
| commit | bf4acc611a620d9579969a90e4187b759ddb8a99 (patch) | |
| tree | f1b4d28f7a24077869d1c73a40552914c47298fa /pkg/file/gen.lua | |
| parent | 4091567d664f565a91677016780874cd3aad24b5 (diff) | |
file: Build strlcpy into host magic compiler
If the host system is glibc-based, we need the fallback strlcpy
implementation.
Diffstat (limited to 'pkg/file/gen.lua')
| -rw-r--r-- | pkg/file/gen.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/file/gen.lua b/pkg/file/gen.lua index b1cc4a28..a1c9e112 100644 --- a/pkg/file/gen.lua +++ b/pkg/file/gen.lua @@ -49,7 +49,7 @@ sub('host.ninja', function() ([[-D 'VERSION="%s"']]):format(version), } set('outdir', '$outdir/host') - exe('magic', 'src/(magic.c apprentice.c encoding.c print.c funcs.c cdf_time.c)') + exe('magic', 'src/(magic.c apprentice.c encoding.c print.c funcs.c cdf_time.c strlcpy.c)') end) rule('magic', 'cd $outdir && ./host/magic magic') |
