summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-21 22:32:49 +0800
committerruki <[email protected]>2023-08-21 22:32:49 +0800
commit3af4b92bef5b4f9c58575cb4ea5770d846a554c8 (patch)
treea34bb0c00898ed5670cd37822ed6b9a4612e6b12
parent082c0d445eb93734bcf2f010b4c8874f8fcc2f55 (diff)
remove unused flags
-rw-r--r--tests/projects/cuda/console_2/xmake.lua1
-rw-r--r--tests/projects/cuda/static/xmake.lua1
-rw-r--r--tests/projects/objc/macapp/xmake.lua7
-rw-r--r--xmake/templates/cuda/console/project/xmake.lua6
-rw-r--r--xmake/templates/cuda/shared/project/xmake.lua6
-rw-r--r--xmake/templates/cuda/static/project/xmake.lua6
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")