diff --git a/premake5.lua b/premake5.lua index adee659..74b5800 100644 --- a/premake5.lua +++ b/premake5.lua @@ -38,6 +38,9 @@ targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}" configurations {"Debug", "Release"} +language "C++" +cppdialect "C++20" + if os.istarget("darwin") then platforms {"x64", "arm64"} else @@ -56,20 +59,6 @@ filter "platforms:arm64" architecture "ARM64" filter {} -filter {"language:C++", "toolset:not msc*"} - buildoptions { - "-std=c++20" - } -filter "toolset:msc*" - buildoptions { - "/std:c++20" - } -filter {} - -filter {"system:windows"} - systemversion "latest" -filter {} - symbols "On" staticruntime "On" editandcontinue "Off" @@ -107,7 +96,7 @@ flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64Bi filter "configurations:Release" optimize "Speed" - defines {"NDEBUG"} + defines "NDEBUG" flags "FatalCompileWarnings" filter {} @@ -136,9 +125,8 @@ filter { "system:windows", "toolset:not msc*" } "%{_MAIN_SCRIPT_DIR}/src" } filter { "system:windows", "toolset:msc*" } - linkoptions {"/IGNORE:4254", "/SAFESEH:NO", "/LARGEADDRESSAWARE", "/PDBCompress"} resincludedirs { - "$(ProjectDir)src" -- fix for VS IDE + "$(ProjectDir)src" } filter {}