summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 346ff439db8..b1d76df09bf 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -77,6 +77,16 @@ function precompiledheaders()
end
end
+function precompiledheaders_novs()
+ precompiledheaders()
+ if string.sub(_ACTION,1,4) == "vs20" then
+ --print("Disabling pch for Visual Studio")
+ flags {
+ "NoPCH"
+ }
+ end
+end
+
function addprojectflags()
local version = str_to_version(_OPTIONS["gcc_version"])
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then
@@ -486,7 +496,6 @@ configuration { "vs20*" }
"/bigobj",
}
flags {
- "NoPCH",
"ExtraWarnings",
}
if not _OPTIONS["NOWERROR"] then