diff options
| author | ruki <[email protected]> | 2019-06-19 00:48:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-18 22:50:04 +0800 |
| commit | d6d53fa5696b012d435506d3b88edb5851c269f8 (patch) | |
| tree | f517fb5c82d58e47d4d8860907b80cdc70f2acc8 /xmake/rules/cuda/devlink | |
| parent | 96bda12356f3d69edae33a31d384d28b1ef74274 (diff) | |
modify code style
Diffstat (limited to 'xmake/rules/cuda/devlink')
| -rw-r--r-- | xmake/rules/cuda/devlink/xmake.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua index 1cdfb2fb7..2854bc0d7 100644 --- a/xmake/rules/cuda/devlink/xmake.lua +++ b/xmake/rules/cuda/devlink/xmake.lua @@ -26,6 +26,13 @@ rule("cuda.devlink") -- @see https://devblogs.nvidia.com/separate-compilation-linking-cuda-device-code/ before_link(function (target, opt) + + -- imports + import("core.base.option") + import("core.theme.theme") + import("core.project.config") + import("core.project.depend") + import("core.tool.linker") import("core.platform.platform") -- disable devlink? @@ -39,13 +46,6 @@ rule("cuda.devlink") return end - -- imports - import("core.base.option") - import("core.theme.theme") - import("core.project.config") - import("core.project.depend") - import("core.tool.linker") - -- load linker instance local linkinst = linker.load("gpucode", "cu", {target = target}) |
