summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-13 23:06:16 +0800
committerruki <[email protected]>2019-03-13 12:37:38 +0800
commit8dfe470e645f24399234af603187dbd30c39b558 (patch)
tree1d2a774d5ed332f09796f8cc48640c9a294fa516
parent04b11774c17f90381d14ff5814c6b17baee35a52 (diff)
add defines for nvcc
-rw-r--r--xmake/languages/cuda/api.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/languages/cuda/api.lua b/xmake/languages/cuda/api.lua
index 70cdf21c9..a36a463d2 100644
--- a/xmake/languages/cuda/api.lua
+++ b/xmake/languages/cuda/api.lua
@@ -35,6 +35,8 @@ function apis()
, "target.add_ldflags"
, "target.add_arflags"
, "target.add_shflags"
+ , "target.add_defines"
+ , "target.add_undefines"
, "target.add_rpathdirs" -- @note do not translate path, it's usually an absolute path or contains $ORIGIN/@loader_path
-- option.add_xxx
, "option.add_links"
@@ -43,6 +45,8 @@ function apis()
, "option.add_ldflags"
, "option.add_arflags"
, "option.add_shflags"
+ , "option.add_defines"
+ , "option.add_undefines"
, "option.add_rpathdirs"
}
_g.pathes =