From a3588c18bf225e4e2174b0e71ee3f6564f3735cb Mon Sep 17 00:00:00 2001 From: "S.Z" Date: Tue, 13 Aug 2019 19:20:53 +0200 Subject: 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 --- scripts/genie.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scripts/genie.lua') 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 -- cgit v1.2.3-70-g09d2