Using Lua libraries from within tup -
i'm using tup replace complicated makefile , i'd call out other lua libraries tup code. in particular. i'd use luafilesystem
, yaml
generate build rules. however, can't find way load these libraries within tup.
in particular, if do
local lfs = require "luafilesystem"
(or of other traditional variants importing lua scripts), invariably error:
attempt call global '
require
' (anil
value)
this suggests me tup not support usual lua mechanisms invoking exernal libraries. missing something?
i'm using tup v0.7.3-4-g1a8d07e
according documentation require
not available: "the base functions defined, excluding dofile, loadfile, load, , require."
it seems may able implement own "require" based on tup.include
, "parses , runs lua file @ path".
Comments
Post a Comment