aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2018-03-10 00:41:07 +0800
committerruki <waruqi@gmail.com>2018-03-09 22:06:46 +0800
commit67f88534b39e7fae5b6e19c243ae0e645d5b47c0 (patch)
tree1e14e20484d7efee3b1680fa40a439fc21acf2cb
parent52a47f58db8086b99ab5ef5ca33506fa55d2312f (diff)
downloadxmake-docs-67f88534b39e7fae5b6e19c243ae0e645d5b47c0.tar.gz
xmake-docs-67f88534b39e7fae5b6e19c243ae0e645d5b47c0.zip
add cuda flags
-rw-r--r--README.md5
-rw-r--r--cn/index.html1
-rw-r--r--landing.html1
-rw-r--r--landing/index.cn.md1
-rw-r--r--landing/index.md1
-rw-r--r--manual.md12
-rw-r--r--zh/README.md5
-rw-r--r--zh/manual.md12
8 files changed, 38 insertions, 0 deletions
diff --git a/README.md b/README.md
index 857dbb20..f1a81327 100644
--- a/README.md
+++ b/README.md
@@ -409,6 +409,7 @@ $ xmake
| [--gc](#-gc) | Set `golang` compiler |
| [--dc](#-dc) | Set `dlang` compiler |
| [--rc](#-rc) | Set `rust` compiler |
+| [--cu](#-cu) | Set `cuda` compiler |
| [--ld](#-ld) | Set `c/c++/objc/asm` linker |
| [--sh](#-sh) | Set `c/c++/objc/asm` shared library linker |
| [--ar](#-ar) | Set `c/c++/objc/asm` static library archiver |
@@ -422,6 +423,9 @@ $ xmake
| [--rc-ld](#-rc-ld) | Set `rust` linker |
| [--rc-sh](#-rc-sh) | Set `rust` shared library linker |
| [--rc-ar](#-rc-ar) | Set `rust` static library archiver |
+| [--cu-ld](#-cu-ld) | Set `cuda` linker |
+| [--cu-sh](#-cu-sh) | Set `cuda` shared library linker |
+| [--cu-ar](#-cu-ar) | Set `cuda` static library archiver |
| [--asflags](#-asflags) | Set `asm` assembler option |
| [--cflags](#-cflags) | Set `c` compiler option |
| [--cxflags](#-cxflags) | Set `c/c++` compiler option |
@@ -433,6 +437,7 @@ $ xmake
| [--gcflags](#-gcflags) | Set `golang` compiler option |
| [--dcflags](#-dcflags) | Set `dlang` compiler option |
| [--rcflags](#-rcflags) | Set `rust` compiler option |
+| [--cuflags](#-cuflags) | Set `cuda` compiler option |
| [--ldflags](#-ldflags) | Set linker option |
| [--shflags](#-shflags) | Set shared library linker option |
| [--arflags](#-arflags) | Set static library archiver option |
diff --git a/cn/index.html b/cn/index.html
index 29e43f1f..55cd61d9 100644
--- a/cn/index.html
+++ b/cn/index.html
@@ -132,6 +132,7 @@
<li>Golang</li>
<li>Rust</li>
<li>Dlang</li>
+ <li>Cuda</li>
</ul>
<h2 id="section-9">内置插件</h2>
diff --git a/landing.html b/landing.html
index a94c091c..9b287c74 100644
--- a/landing.html
+++ b/landing.html
@@ -132,6 +132,7 @@
<li>Golang</li>
<li>Rust</li>
<li>Dlang</li>
+ <li>Cuda</li>
</ul>
<h2 id="builtin-plugins">Builtin Plugins</h2>
diff --git a/landing/index.cn.md b/landing/index.cn.md
index c2bafa2f..036178ad 100644
--- a/landing/index.cn.md
+++ b/landing/index.cn.md
@@ -83,6 +83,7 @@ $ xmake f --menu
* Golang
* Rust
* Dlang
+* Cuda
## 内置插件
diff --git a/landing/index.md b/landing/index.md
index 4f13884e..ec124f10 100644
--- a/landing/index.md
+++ b/landing/index.md
@@ -83,6 +83,7 @@ $ xmake f --menu
* Golang
* Rust
* Dlang
+* Cuda
## Builtin Plugins
diff --git a/manual.md b/manual.md
index f1103e14..2a324bcb 100644
--- a/manual.md
+++ b/manual.md
@@ -535,6 +535,7 @@ target("test2")
| [add_gcflags](#targetadd_gcflags) | Add go compilation flags | >= 2.1.1 |
| [add_dcflags](#targetadd_dcflags) | Add dlang compilation flags | >= 2.1.1 |
| [add_rcflags](#targetadd_rcflags) | Add rust compilation flags | >= 2.1.1 |
+| [add_cuflags](#targetadd_cuflags) | Add cuda compilation flags | >= 2.1.1 |
| [add_ldflags](#targetadd_ldflags) | Add static library link flags | >= 1.0.1 |
| [add_arflags](#targetadd_arflags) | Add archive library flags | >= 1.0.1 |
| [add_shflags](#targetadd_shflags) | Add dynamic library link flags | >= 1.0.1 |
@@ -1932,6 +1933,16 @@ add_dcflags("xxx")
add_rcflags("xxx")
```
+##### target:add_cuflags
+
+###### Add cuda compilation flags
+
+对cuda代码添加编译选项
+
+```lua
+add_cuflags("-gencode arch=compute_30,code=sm_30")
+```
+
##### target:add_ldflags
###### Add static library link flags
@@ -2247,6 +2258,7 @@ option("test2")
| [add_gcflags](#targetadd_gcflags) | 添加go编译选项 | >= 2.1.1 |
| [add_dcflags](#targetadd_dcflags) | 添加dlang编译选项 | >= 2.1.1 |
| [add_rcflags](#targetadd_rcflags) | 添加rust编译选项 | >= 2.1.1 |
+| [add_cuflags](#targetadd_cuflags) | 添加cuda编译选项 | >= 2.1.10 |
| [add_ldflags](#targetadd_ldflags) | 添加链接选项 | >= 2.1.1 |
| [add_arflags](#targetadd_arflags) | 添加静态库归档选项 | >= 2.1.1 |
| [add_shflags](#targetadd_shflags) | 添加动态库链接选项 | >= 2.0.1 |
diff --git a/zh/README.md b/zh/README.md
index 98fd70a1..905e7b93 100644
--- a/zh/README.md
+++ b/zh/README.md
@@ -435,6 +435,7 @@ $ xmake
| [--gc](#-gc) | 设置`golang`编译器 |
| [--dc](#-dc) | 设置`dlang`编译器 |
| [--rc](#-rc) | 设置`rust`编译器 |
+| [--cu](#-cu) | 设置`cuda`编译器 |
| [--ld](#-ld) | 设置`c/c++/objc/asm`链接器 |
| [--sh](#-sh) | 设置`c/c++/objc/asm`共享库链接器 |
| [--ar](#-ar) | 设置`c/c++/objc/asm`静态库归档器 |
@@ -448,6 +449,9 @@ $ xmake
| [--rc-ld](#-rc-ld) | 设置`rust`链接器 |
| [--rc-sh](#-rc-sh) | 设置`rust`共享库链接器 |
| [--rc-ar](#-rc-ar) | 设置`rust`静态库归档器 |
+| [--cu-ld](#-cu-ld) | 设置`cuda`链接器 |
+| [--cu-sh](#-cu-sh) | 设置`cuda`共享库链接器 |
+| [--cu-ar](#-cu-ar) | 设置`cuda`静态库归档器 |
| [--asflags](#-asflags) | 设置`asm`汇编编译选项 |
| [--cflags](#-cflags) | 设置`c`编译选项 |
| [--cxflags](#-cxflags) | 设置`c/c++`编译选项 |
@@ -459,6 +463,7 @@ $ xmake
| [--gcflags](#-gcflags) | 设置`golang`编译选项 |
| [--dcflags](#-dcflags) | 设置`dlang`编译选项 |
| [--rcflags](#-rcflags) | 设置`rust`编译选项 |
+| [--cuflags](#-cuflags) | 设置`cuda`编译选项 |
| [--ldflags](#-ldflags) | 设置链接选项 |
| [--shflags](#-shflags) | 设置共享库链接选项 |
| [--arflags](#-arflags) | 设置静态库归档选项 |
diff --git a/zh/manual.md b/zh/manual.md
index 0c98db62..dea13896 100644
--- a/zh/manual.md
+++ b/zh/manual.md
@@ -559,6 +559,7 @@ target("test2")
| [add_gcflags](#targetadd_gcflags) | 添加go编译选项 | >= 2.1.1 |
| [add_dcflags](#targetadd_dcflags) | 添加dlang编译选项 | >= 2.1.1 |
| [add_rcflags](#targetadd_rcflags) | 添加rust编译选项 | >= 2.1.1 |
+| [add_cuflags](#targetadd_cuflags) | 添加cuda编译选项 | >= 2.1.10 |
| [add_ldflags](#targetadd_ldflags) | 添加链接选项 | >= 1.0.1 |
| [add_arflags](#targetadd_arflags) | 添加静态库归档选项 | >= 1.0.1 |
| [add_shflags](#targetadd_shflags) | 添加动态库链接选项 | >= 1.0.1 |
@@ -1952,6 +1953,16 @@ add_dcflags("xxx")
add_rcflags("xxx")
```
+##### target:add_cuflags
+
+###### 添加cuda编译选项
+
+对cuda代码添加编译选项
+
+```lua
+add_cuflags("-gencode arch=compute_30,code=sm_30")
+```
+
##### target:add_ldflags
###### 添加链接选项
@@ -2267,6 +2278,7 @@ option("test2")
| [add_gcflags](#targetadd_gcflags) | 添加go编译选项 | >= 2.1.1 |
| [add_dcflags](#targetadd_dcflags) | 添加dlang编译选项 | >= 2.1.1 |
| [add_rcflags](#targetadd_rcflags) | 添加rust编译选项 | >= 2.1.1 |
+| [add_cuflags](#targetadd_cuflags) | 添加cuda编译选项 | >= 2.1.10 |
| [add_ldflags](#targetadd_ldflags) | 添加链接选项 | >= 2.1.1 |
| [add_arflags](#targetadd_arflags) | 添加静态库归档选项 | >= 2.1.1 |
| [add_shflags](#targetadd_shflags) | 添加动态库链接选项 | >= 2.0.1 |