diff options
author | 2019-08-13 19:20:53 +0200 | |
---|---|---|
committer | 2019-08-13 13:20:53 -0400 | |
commit | a3588c18bf225e4e2174b0e71ee3f6564f3735cb (patch) | |
tree | 7ca52d1e77576ec3304f7ce786de3ce760c2e383 /scripts/genie.lua | |
parent | 5384701b766ee4b89ebcc8ad04c7dbe8be0ef856 (diff) |
Enable precompiled header usage in the Visual Studio compiler (#5473)
* Enable precompiled header usage in the Visual Studio compiler
But only for libraries emu frontend precompile dasm optional
Also add emu.h include to hpcdasm.cpp
* Include emu.h in some disassembler sources to use precompiled headers
* Remove debug message
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 11 |
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 |