diff options
| author | ruki <[email protected]> | 2020-03-14 00:35:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-13 21:34:43 +0800 |
| commit | 4ebb92ada13b8d521542ec371ee9ec97c90a264d (patch) | |
| tree | 9307a99ddd8adab26b0d020e99365758839141c2 /xmake/modules/private/action/build/pcheader.lua | |
| parent | 1925d9171b2dce49cb95e5816fd38bc103a44be3 (diff) | |
fix pcheader
Diffstat (limited to 'xmake/modules/private/action/build/pcheader.lua')
| -rw-r--r-- | xmake/modules/private/action/build/pcheader.lua | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/xmake/modules/private/action/build/pcheader.lua b/xmake/modules/private/action/build/pcheader.lua index 48237dac9..c3753e928 100644 --- a/xmake/modules/private/action/build/pcheader.lua +++ b/xmake/modules/private/action/build/pcheader.lua @@ -22,27 +22,15 @@ import("core.language.language") import("object") --- build the precompiled header file +-- add batch jobs to build the precompiled header file function main(target, langkind, opt) - - -- get the precompiled header local pcheaderfile = target:pcheaderfile(langkind) if pcheaderfile then - - -- init sourcefile, objectfile and dependfile local sourcefile = pcheaderfile local objectfile = target:pcoutputfile(langkind) local dependfile = target:dependfile(objectfile) local sourcekind = language.langkinds()[langkind] - - -- init source batch local sourcebatch = {sourcekind = sourcekind, sourcefiles = {sourcefile}, objectfiles = {objectfile}, dependfiles = {dependfile}} - - -- build this precompiled header - local progress = opt.progress - if type(progress) == "number" then - progress = {start = progress, stop = progress} - end - object(target, sourcebatch, {progress = progress}) + object.build(target, sourcebatch, opt) end end |
