Enable `extra_checks` feature if built by `build-lua`

This commit is contained in:
wtfsck 2022-05-17 20:46:01 +02:00
parent 5d70799363
commit d7ab11bdb3
2 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,7 @@ build_test_rock_lua() {
cd "$luasrc_dir"
luarocks make iced_x86-*.rockspec --local --lua-version $lua_maj.$lua_min
ICED_LUA_EXTRA_FEATURES="extra_checks" luarocks make iced_x86-*.rockspec --local --lua-version $lua_maj.$lua_min
eval $(luarocks path --lua-version $lua_maj.$lua_min)
busted_filename=/tmp/tmp-busted-runner

View File

@ -29,6 +29,8 @@ build() {
echo "Unsupported Lua version: $lua_ver"
exit 1
fi
# Env var set by build-lua
lua_feat="$lua_feat $ICED_LUA_EXTRA_FEATURES"
cargo build --release -v --features "$lua_feat"
}