Browse Source

Fix LuaJIT Windows build. Update changelog.

tags/v1.3.0
Andrew Belt 5 years ago
parent
commit
79262161d7
3 changed files with 6 additions and 3 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +1
    -2
      Makefile
  3. +1
    -1
      src/ScriptEngine.hpp

+ 4
- 0
CHANGELOG.md View File

@@ -1,3 +1,7 @@
### 1.2.0 (in development)
- Add Lua script engine.
- Add security warning when loading script from patch or module preset.

### 1.1.1 (2019-09-27) ### 1.1.1 (2019-09-27)
- Switch JavaScript engine to QuickJS from Duktape. Supports ES2020 and is ~2x faster. - Switch JavaScript engine to QuickJS from Duktape. Supports ES2020 and is ~2x faster.
- Automatically reload script when script file changes. - Automatically reload script when script file changes.


+ 1
- 2
Makefile View File

@@ -70,8 +70,7 @@ $(luajit):
$(WGET) "http://luajit.org/download/LuaJIT-2.0.5.tar.gz" $(WGET) "http://luajit.org/download/LuaJIT-2.0.5.tar.gz"
$(SHA256) LuaJIT-2.0.5.tar.gz 874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979 $(SHA256) LuaJIT-2.0.5.tar.gz 874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979
cd dep && $(UNTAR) ../LuaJIT-2.0.5.tar.gz cd dep && $(UNTAR) ../LuaJIT-2.0.5.tar.gz
cd dep/LuaJIT-2.0.5 && $(MAKE)
cd dep/LuaJIT-2.0.5 && $(MAKE) PREFIX="$(DEP_PATH)" install
cd dep/LuaJIT-2.0.5 && $(MAKE) BUILDMODE=static PREFIX="$(DEP_PATH)" install
endif endif


# Python # Python


+ 1
- 1
src/ScriptEngine.hpp View File

@@ -59,7 +59,7 @@ __attribute__((constructor(1000)))
template<typename TScriptEngine> template<typename TScriptEngine>
void addScriptEngine(std::string extension) { void addScriptEngine(std::string extension) {
struct TScriptEngineFactory : ScriptEngineFactory { struct TScriptEngineFactory : ScriptEngineFactory {
ScriptEngine* createScriptEngine() {
ScriptEngine* createScriptEngine() override {
return new TScriptEngine; return new TScriptEngine;
} }
}; };


Loading…
Cancel
Save