summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-28 15:44:47 +0800
committerruki <[email protected]>2017-07-28 15:44:47 +0800
commit927858060bdb6b56f1650276f1edf718bc713051 (patch)
treee0fec06ab5a2800d31f6b7b16d7d12ecb5970b00
parenta7ad6c04a0064255466616c990f625b6dea5d6da (diff)
disable precompiled header for vcproj plugin
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua4
-rw-r--r--xmake/plugins/project/vstudio/impl/vs200x.lua6
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua4
3 files changed, 14 insertions, 0 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index 39640ae48..fad5549bb 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -78,6 +78,10 @@ end
-- make target
function _make_target(jsonfile, target)
+ -- TODO
+ -- disable precompiled header first
+ target:set("precompiled_header", nil)
+
-- build source batches
for sourcekind, sourcebatch in pairs(target:sourcebatches()) do
if type(sourcebatch.objectfiles) == "string" then
diff --git a/xmake/plugins/project/vstudio/impl/vs200x.lua b/xmake/plugins/project/vstudio/impl/vs200x.lua
index 2c35534fe..6a14613d7 100644
--- a/xmake/plugins/project/vstudio/impl/vs200x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs200x.lua
@@ -39,6 +39,12 @@ function make(outputdir, vsinfo)
-- make solution
vs200x_solution.make(vsinfo)
+ -- TODO
+ -- disable precompiled header first
+ for _, target in pairs(project.targets()) do
+ target:set("precompiled_header", nil)
+ end
+
-- make vsprojs
for _, target in pairs(project.targets()) do
if not target:isphony() then
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index ad60e33cc..7563eb5c7 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -189,6 +189,10 @@ function make(outputdir, vsinfo)
for targetname, target in pairs(project.targets()) do
if not target:isphony() then
+ -- TODO
+ -- disable precompiled header first
+ target:set("precompiled_header", nil)
+
-- make target with the given mode and arch
targets[targetname] = targets[targetname] or {}
local _target = targets[targetname]