diff options
| author | ruki <[email protected]> | 2019-06-09 23:15:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-09 23:15:08 +0800 |
| commit | 60ddb4c5a6725d11a7821d691dfd53c23df282bc (patch) | |
| tree | 2cbce0fbb1afc08141761e18699fc23407b3f519 /xmake/platforms/linux | |
| parent | 7a8d81f043060ace914fc13f3ca914419605ab27 (diff) | |
improve to the device link for cuda
Diffstat (limited to 'xmake/platforms/linux')
| -rw-r--r-- | xmake/platforms/linux/load.lua | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/xmake/platforms/linux/load.lua b/xmake/platforms/linux/load.lua index b9ff210b1..4b49bec9a 100644 --- a/xmake/platforms/linux/load.lua +++ b/xmake/platforms/linux/load.lua @@ -81,14 +81,9 @@ function main(platform) -- init flags for cuda local cu_archs = { i386 = "-m32 -Xcompiler -m32", x86_64 = "-m64 -Xcompiler -m64" } platform:add("cuflags", cu_archs[arch] or "") - platform:add("cu-shflags", cu_archs[arch] or "") - platform:add("cu-ldflags", cu_archs[arch] or "") local cuda_dir = config.get("cuda") if cuda_dir then platform:add("cuflags", "-I" .. os.args(path.join(cuda_dir, "include"))) - platform:add("cu-ldflags", "-L" .. os.args(path.join(cuda_dir, "lib"))) - platform:add("cu-shflags", "-L" .. os.args(path.join(cuda_dir, "lib"))) - platform:add("cu-ldflags", "-Xlinker -rpath=" .. os.args(path.join(cuda_dir, "lib"))) end local cu_cxx = config.get("cu-cxx") if cu_cxx then |
