From 3af4b92bef5b4f9c58575cb4ea5770d846a554c8 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 21 Aug 2023 22:32:49 +0800 Subject: remove unused flags --- tests/projects/cuda/console_2/xmake.lua | 1 - tests/projects/cuda/static/xmake.lua | 1 - tests/projects/objc/macapp/xmake.lua | 7 +++++++ xmake/templates/cuda/console/project/xmake.lua | 6 ------ xmake/templates/cuda/shared/project/xmake.lua | 6 ------ xmake/templates/cuda/static/project/xmake.lua | 6 ------ 6 files changed, 7 insertions(+), 20 deletions(-) diff --git a/tests/projects/cuda/console_2/xmake.lua b/tests/projects/cuda/console_2/xmake.lua index d2571269e..d04aa8856 100644 --- a/tests/projects/cuda/console_2/xmake.lua +++ b/tests/projects/cuda/console_2/xmake.lua @@ -5,6 +5,5 @@ add_cugencodes("compute_35") target("bin") set_kind("binary") - add_cuflags("-rdc=true") add_includedirs("inc") add_files("src/*.cu") diff --git a/tests/projects/cuda/static/xmake.lua b/tests/projects/cuda/static/xmake.lua index 5cbc8b90d..d88cf7964 100644 --- a/tests/projects/cuda/static/xmake.lua +++ b/tests/projects/cuda/static/xmake.lua @@ -5,7 +5,6 @@ add_cugencodes("compute_30") target("lib") set_kind("static") - add_cuflags("-rdc=true") add_includedirs("inc", {public = true}) add_files("src/lib.cu") diff --git a/tests/projects/objc/macapp/xmake.lua b/tests/projects/objc/macapp/xmake.lua index e1e9e6d74..71e2af16b 100644 --- a/tests/projects/objc/macapp/xmake.lua +++ b/tests/projects/objc/macapp/xmake.lua @@ -1,6 +1,13 @@ add_rules("mode.debug", "mode.release") +rule("test") + add_deps("xcode.application") + after_build(function () + print("xxx") + end) + target("test") add_rules("xcode.application") add_files("src/*.m", "src/**.storyboard", "src/*.xcassets") add_files("src/Info.plist") + add_rules("test") diff --git a/xmake/templates/cuda/console/project/xmake.lua b/xmake/templates/cuda/console/project/xmake.lua index 17223cbc4..70967535d 100644 --- a/xmake/templates/cuda/console/project/xmake.lua +++ b/xmake/templates/cuda/console/project/xmake.lua @@ -4,12 +4,6 @@ target("${TARGETNAME}") set_kind("binary") add_files("src/*.cu") - -- generate relocatable device code for device linker of dependents. - -- if __device__ or __global__ functions will be called cross file, - -- or dynamic parallelism will be used, - -- this instruction should be opted in. - -- add_cuflags("-rdc=true") - -- generate SASS code for SM architecture of current host add_cugencodes("native") diff --git a/xmake/templates/cuda/shared/project/xmake.lua b/xmake/templates/cuda/shared/project/xmake.lua index 9b8e2929d..c24fdb0d8 100644 --- a/xmake/templates/cuda/shared/project/xmake.lua +++ b/xmake/templates/cuda/shared/project/xmake.lua @@ -5,12 +5,6 @@ target("${TARGETNAME}") add_files("src/**.cu") add_includedirs("inc") - -- generate relocatable device code for device linker of dependents. - -- if __device__ or __global__ functions will be called cross file, - -- or dynamic parallelism will be used, - -- this instruction should be opted in. - -- add_cuflags("-rdc=true") - -- generate SASS code for SM architecture of current host add_cugencodes("native") diff --git a/xmake/templates/cuda/static/project/xmake.lua b/xmake/templates/cuda/static/project/xmake.lua index 7bdbb1d91..ec663ae28 100644 --- a/xmake/templates/cuda/static/project/xmake.lua +++ b/xmake/templates/cuda/static/project/xmake.lua @@ -5,12 +5,6 @@ target("${TARGETNAME}") add_files("src/**.cu") add_includedirs("inc") - -- generate relocatable device code for device linker of dependents. - -- if neither __device__ and __global__ functions will be called cross file or be exported, - -- nor dynamic parallelism will be used, - -- this instruction could be omitted. - add_cuflags("-rdc=true") - -- generate SASS code for SM architecture of current host add_cugencodes("native") -- cgit v1.3.1