Merge pull request #25 from alterware/build/premake5-update

build: update premake5 config file
This commit is contained in:
Edo 2023-07-22 09:56:55 +02:00 committed by GitHub
commit 3216c522c9
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 {}