premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

gmake2: defaultplatform doesn't interact with non-default configurations

Open LunarLambda opened this issue 4 years ago • 1 comments

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.

LunarLambda avatar Feb 12 '21 12:02 LunarLambda

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.

samsinsane avatar Feb 14 '21 07:02 samsinsane