From 0d5ead2f203557e454409f43fb24cf2a850cdb88 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 29 Jan 2023 17:26:35 +0800 Subject: add missing cmake build options. --- src/yuescript/parser.cpp | 4 ++-- yuescript-dev-1.rockspec | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/yuescript/parser.cpp b/src/yuescript/parser.cpp index 0fc1c1e..25b735e 100644 --- a/src/yuescript/parser.cpp +++ b/src/yuescript/parser.cpp @@ -1224,8 +1224,8 @@ rule::rule(const expr& e) */ rule::rule(const char* name, rule::initTag) : m_expr(nullptr) - , m_parse_proc(nullptr) - , m_name(name) { } + , m_name(name) + , m_parse_proc(nullptr) { } #endif // NDEBUG diff --git a/yuescript-dev-1.rockspec b/yuescript-dev-1.rockspec index a8d9eea..bcf4933 100644 --- a/yuescript-dev-1.rockspec +++ b/yuescript-dev-1.rockspec @@ -21,6 +21,7 @@ build = { variables = { LUA_INCDIR = "$(LUA_INCDIR)", LUA = "$(LUA)", + CMAKE_BUILD_TYPE="Release" }, install = { lib = { -- cgit v1.2.3-55-g6feb