diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-15 15:14:26 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-15 15:14:56 -0800 |
| commit | 17fc0a0e3870030dc5db5e14c0a798b65ef7e557 (patch) | |
| tree | 48294074c1fd1e7df5d78304fe165f8417e1ea78 /nomsu_environment.moon | |
| parent | 3036d425a582898a03dfe306ac9b31ca16c269e5 (diff) | |
Fix for files getting run twice by (use "")
Diffstat (limited to 'nomsu_environment.moon')
| -rw-r--r-- | nomsu_environment.moon | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nomsu_environment.moon b/nomsu_environment.moon index cc059b5..6986b77 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -179,6 +179,10 @@ nomsu_environment = Importer{ continue unless files for filename in *files lua_filename = filename\gsub("%.nom$", ".lua") + -- Need to check here to prevent re-running files + if environment.FILE_CACHE[filename] + import_to_1_from(environment, environment.FILE_CACHE[filename], prefix) + continue -- TODO: don't automatically use precompiled version? code = if optimization != 0 and Files.read(lua_filename) -- TODO: use a checksum? |
