summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-18 00:34:51 +0800
committerruki <[email protected]>2022-05-18 00:34:51 +0800
commit91d8197cef25c656b9de6aa95076c2d37f0206c2 (patch)
treeb71f3178159be319b1fd40896b0883868becdea7 /xmake/core/tool/builder.lua
parent053c31a5582c15fea9fc674ec3a14cccd9057b7e (diff)
fix preprocessor flags
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index b7ef1fdc0..e21b2bf3b 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -392,6 +392,11 @@ function builder:_preprocess_flags(flags)
return results
end
+-- get the target
+function builder:target()
+ return self._TARGET
+end
+
-- get tool name
function builder:name()
return self:_tool():name()