[*] Amended bStaticRuntime on Linux and Windows
[+] Aurora.Settings.bBasicMitigations for Windows
This commit is contained in:
parent
eb29d1311d
commit
ef1d2633e5
@ -115,16 +115,34 @@ local function configureProjectForCompiler()
|
||||
end
|
||||
|
||||
local function configureProjectForPlatform(platform, projectType)
|
||||
if (platform == "win32") then
|
||||
if (platform == "linux") then
|
||||
if (Aurora.Settings.bStaticRuntime) then
|
||||
buildoptions "-static"
|
||||
linkoptions "-l:libc++abi.a"
|
||||
linkoptions "-l:libc++.a"
|
||||
linkoptions "-Wl,--as-needed"
|
||||
end
|
||||
end
|
||||
|
||||
if (platform == "win32") then
|
||||
characterset(Aurora.Settings.sMsvcDefCharset)
|
||||
|
||||
if (Aurora.Settings.bStaticRuntime) then
|
||||
staticruntime("On")
|
||||
links "libucrt.lib"
|
||||
else
|
||||
staticruntime("Off")
|
||||
end
|
||||
|
||||
if (not Aurora.Settings.bBasicMitigations) then
|
||||
buildoptions {
|
||||
--"/GS-",
|
||||
"/sdl-"
|
||||
}
|
||||
|
||||
flags "NoBufferSecurityCheck"
|
||||
end
|
||||
|
||||
if (Aurora.Settings.bHotswap) then
|
||||
justmycode("On")
|
||||
else
|
||||
|
@ -64,12 +64,19 @@ local function auStartSolution(sln)
|
||||
|
||||
auFilter { "toolset:clang"}
|
||||
linkoptions {"-nodefaultlibs"}
|
||||
links {"c++",
|
||||
"c++abi",
|
||||
links {
|
||||
"m",
|
||||
"c",
|
||||
"gcc_s",
|
||||
"gcc"}
|
||||
"gcc"
|
||||
}
|
||||
|
||||
if (Aurora.Settings.bStaticRuntime) then
|
||||
links {
|
||||
"c++",
|
||||
"c++abi"
|
||||
}
|
||||
end
|
||||
auFilter {}
|
||||
end
|
||||
end
|
||||
|
@ -97,6 +97,7 @@ auSetDefault(settings, "bDefinePartialABIInTargetName", true)
|
||||
|
||||
auSetDefault(settings, "bStaticRuntime", true)
|
||||
|
||||
auSetDefault(settings, "bBasicMitigations", true)
|
||||
--
|
||||
auSetDefault(settings, "bLTO", false)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user