diff options
| author | OpportunityLiu <[email protected]> | 2020-08-08 19:21:16 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2020-08-08 19:21:16 +0800 |
| commit | 052278ef2744328d6e6d1b2620bdbbf343540708 (patch) | |
| tree | dab6a9d1585786fdbdb9a3d02bbb53ccead67089 | |
| parent | 42034f35e7dba6d680ad82ab326b9dc95f3e41ba (diff) | |
PIE
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 6aab1225d..24209e228 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -33,6 +33,7 @@ function init(self) -- init cuflags if not is_plat("windows", "mingw") then self:set("shared.cuflags", "-Xcompiler -fPIC") + self:set("binary.cuflags", "-Xcompiler -fPIE") end -- add -ccbin |
