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' (a nil 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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -