refactor(demo): keep the demo Lua-only
Calling the compiled modules required a CMake project and a C++ main, which contradicted the point of the compiler. A Lua entry script now prints the same report, and the modules sit next to it so require resolves without any flag.
This commit is contained in:
8 files changed
+37
-70
No files matched your search
@@ -6,7 +6,7 @@
|
||||
# cd build && ./luacpp run ../script.lua # même chose depuis le dossier build
|
||||
#
|
||||
# Options:
|
||||
# ./build.sh --full # + Demo et tests
|
||||
# ./build.sh --full # + tests de conformité et démo Lua
|
||||
#
|
||||
# Environment:
|
||||
# BUILD_DIR build directory (default: build)
|
||||
@@ -38,15 +38,12 @@ if [[ "${1:-}" != "--full" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "==> building the Demo and the tests"
|
||||
echo "==> building the tests"
|
||||
cmake --build "$BUILD_DIR" -j "$JOBS"
|
||||
|
||||
echo
|
||||
echo "==> Demo project"
|
||||
cmake -S Demo -B "$BUILD_DIR/demo" -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build "$BUILD_DIR/demo" -j "$JOBS"
|
||||
echo
|
||||
"$BUILD_DIR/demo/luacpp_demo"
|
||||
echo "==> Demo (Lua only, compiled and run by luacpp)"
|
||||
( cd "$BUILD_DIR" && ./luacpp run ../Demo/main.lua )
|
||||
|
||||
echo
|
||||
echo "==> conformance test (compiled modules vs. plain Lua 5.4)"
|
||||
|
||||
Reference in new issue
Block a user