Merge pull request #25 from alterware/build/premake5-update
build: update premake5 config file
This commit is contained in:
commit
3216c522c9
22
premake5.lua
22
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 {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user