build: update premake5 config file

This commit is contained in:
Edo 2023-07-22 09:53:53 +02:00 committed by GitHub
parent 1c10fdff64
commit c414ebd74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {}