Fix CI builds. For some reason bash on windows no longer recognizes luajit without .exe suffix.

Fixes #226
This commit is contained in:
Rokas Kupstys
2022-12-15 10:16:41 +02:00
parent 0348715500
commit 0a953b7102
2 changed files with 9 additions and 2 deletions

View File

@@ -16,4 +16,10 @@
# arg[2] options as words in one string: internal for imgui_internal generation, freetype for freetype generation, comments for comments generation
# examples: "" "internal" "internal freetype" "comments internal"
# arg[3..n] name of implementations to generate and/or CLFLAGS (e.g. -DIMGUI_USER_CONFIG or -DIMGUI_USE_WCHAR32)
luajit ./generator.lua gcc "internal" glfw opengl3 opengl2 sdl
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]];
then
suffix='.exe'
fi
luajit$suffix ./generator.lua gcc "internal" glfw opengl3 opengl2 sdl