premake-core
premake-core copied to clipboard
gmake2: defaultplatform doesn't interact with non-default configurations
workspace "example"
configurations { "Debug", "Release" }
platforms { "Windows", "Linux" }
if os.host() == "linux" then
defaultplatform "Linux"
end
-- ...
Running make config=release
doesn't work, I have to explicitly specify the platform (release_linux
) everytime I want a release build.
defaultplatform
for gmake
and gmake2
just controls which config
value it defaults to when you call make
without specifying config=x
. While I can see value in defaultplatform
creating additional config options for each configurations
value, it will create an inconsistency and likely confusion when you don't use defaultplatform
.