Bump premake to 5.0.0-dev (2026-07-03)

This adds support for the compilcommands action, which allows to improve
the cppcheck workflow and is a requirement for include-what-you-use.

Also disable unused dependencies like is done for macOS.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2026-06-06 07:53:45 +02:00
parent df48ad5813
commit ca536a8cf1
No known key found for this signature in database
2 changed files with 23 additions and 6 deletions

View file

@ -182,6 +182,10 @@ targetdir(rootdir.."/binaries/system")
libdirs(rootdir.."/binaries/system") libdirs(rootdir.."/binaries/system")
location(_OPTIONS["outpath"]) location(_OPTIONS["outpath"])
configurations { "Release", "Debug" } configurations { "Release", "Debug" }
-- for > 5.0.0-beta8
if defaultconfiguration ~= nil then
defaultconfiguration("Release")
end
startproject "pyrogenesis" startproject "pyrogenesis"
source_root = rootdir.."/source/" -- default for most projects - overridden by local in others source_root = rootdir.."/source/" -- default for most projects - overridden by local in others

View file

@ -8,13 +8,13 @@ set -e
cd "$(dirname "$0")" cd "$(dirname "$0")"
PV=5.0.0-beta7 PV=55fc4b2deac045ca06dc23d98426423356c507c1
LIB_VERSION=${PV}+wfg0 LIB_VERSION=${PV}+wfg0
fetch() fetch()
{ {
curl -fLo "premake-core-${PV}.tar.gz" \ curl -fLo "premake-core-${PV}.tar.gz" \
"https://github.com/premake/premake-core/archive/refs/tags/v${PV}.tar.gz" "https://github.com/premake/premake-core/archive/${PV}.tar.gz"
} }
echo "Building Premake..." echo "Building Premake..."
@ -54,18 +54,31 @@ patch -d "premake-core-${PV}" -p1 <patches/0001-Make-clang-default-toolset-for-B
#build #build
( (
cd "premake-core-${PV}" cd "premake-core-${PV}"
# Detection doesn't work on macOS, so specify manually.
if [ "$OS" = "Darwin" ]; then
arch=$(uname -m)
if [ "$arch" = "arm64" ]; then
platform="ARM64"
elif [ "$arch" = "x86_64" ]; then
platform="x64"
fi
fi
config="--zlib-src=none --curl-src=none"
case "${OS}" in case "${OS}" in
Windows) Windows)
${MAKE} "${JOBS}" -f Bootstrap.mak windows ${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="${config}" windows
;; ;;
Darwin) Darwin)
${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="--zlib-src=none --curl-src=none" osx ${MAKE} "${JOBS}" -f Bootstrap.mak PLATFORM="${platform}" PREMAKE_OPTS="${config}" osx
;; ;;
*BSD) *BSD)
${MAKE} "${JOBS}" -f Bootstrap.mak bsd ${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="${config}" bsd
;; ;;
*) *)
${MAKE} "${JOBS}" -f Bootstrap.mak linux ${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="${config}" linux
;; ;;
esac esac
) )