diff options
| author | ruki <[email protected]> | 2022-05-18 00:34:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-18 00:34:51 +0800 |
| commit | 91d8197cef25c656b9de6aa95076c2d37f0206c2 (patch) | |
| tree | b71f3178159be319b1fd40896b0883868becdea7 /xmake/core/tool/compiler.lua | |
| parent | 053c31a5582c15fea9fc674ec3a14cccd9057b7e (diff) | |
fix preprocessor flags
Diffstat (limited to 'xmake/core/tool/compiler.lua')
| -rw-r--r-- | xmake/core/tool/compiler.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua index f2146233f..9bb51e001 100644 --- a/xmake/core/tool/compiler.lua +++ b/xmake/core/tool/compiler.lua @@ -141,6 +141,9 @@ function compiler.load(sourcekind, target) end instance._LANGUAGE = result + -- init target (optional) + instance._TARGET = target + -- init target kind instance._TARGETKIND = "object" @@ -253,6 +256,7 @@ function compiler:compile(sourcefiles, objectfile, opt) end -- compile it + opt.target = self:target() return sandbox.load(self:_tool().compile, self:_tool(), sourcefiles, objectfile, opt.dependinfo, compflags, opt) end |
