From 5d6c236deed0d4cb3abea2cf5016c6ad88a33392 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 12 Jun 2019 00:21:07 +0800 Subject: remove -fPIC for devlink --- .gitignore | 2 +- xmake/rules/cuda/device_link/xmake.lua | 3 --- 2 files changed, 1 insertion(+), 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 -- cgit v1.3.1