summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-12 00:21:07 +0800
committerruki <[email protected]>2019-06-11 20:06:42 +0800
commit5d6c236deed0d4cb3abea2cf5016c6ad88a33392 (patch)
tree9168d59043275d04e5ff24231c3c4e6645c9cc16
parent46a694b347199ab39a6693a04a4bcdee00ade063 (diff)
remove -fPIC for devlink
-rw-r--r--.gitignore2
-rw-r--r--xmake/rules/cuda/device_link/xmake.lua3
2 files changed, 1 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 9fab162c8..e85cd38da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
# MacOS Cache
-.DS_Store/
+.DS_Store
# Xmake cache
.xmake/
diff --git a/xmake/rules/cuda/device_link/xmake.lua b/xmake/rules/cuda/device_link/xmake.lua
index 6921253a3..358c42d93 100644
--- a/xmake/rules/cuda/device_link/xmake.lua
+++ b/xmake/rules/cuda/device_link/xmake.lua
@@ -53,9 +53,6 @@ rule("cuda.device_link")
local culdflags = {"-dlink"}
if targetkind == "shared" then
table.insert(culdflags, "-shared")
- if not is_plat("windows") then
- table.insert(culdflags, "-Xcompiler -fPIC")
- end
end
-- get link flags