File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
def run (
7
7
use_oneapi = True ,
8
+ build_type = "Relese" ,
8
9
c_compiler = None ,
9
10
cxx_compiler = None ,
10
11
level_zero = True ,
@@ -34,7 +35,7 @@ def run(
34
35
"--" ,
35
36
"-G" ,
36
37
build_system ,
37
- "-DCMAKE_BUILD_TYPE=Debug" ,
38
+ "-DCMAKE_BUILD_TYPE=" + build_type ,
38
39
"-DCMAKE_C_COMPILER:PATH=" + c_compiler ,
39
40
"-DCMAKE_CXX_COMPILER:PATH=" + cxx_compiler ,
40
41
"-DDPCTL_ENABLE_LO_PROGRAM_CREATION=" + ("ON" if level_zero else "OFF" ),
@@ -66,6 +67,13 @@ def run(
66
67
dest = "oneapi" ,
67
68
action = "store_true" ,
68
69
)
70
+ driver .add_argument (
71
+ "--debug" ,
72
+ default = "Release" ,
73
+ const = "Debug" ,
74
+ action = "store_const" ,
75
+ help = "Set the compilation mode to debugging" ,
76
+ )
69
77
driver .add_argument (
70
78
"--compiler-root" , type = str , help = "Path to compiler home directory"
71
79
)
@@ -103,6 +111,7 @@ def run(
103
111
104
112
run (
105
113
use_oneapi = args .oneapi ,
114
+ build_type = args .debug ,
106
115
c_compiler = args .c_compiler ,
107
116
cxx_compiler = args .cxx_compiler ,
108
117
level_zero = args .level_zero ,
You can’t perform that action at this time.
0 commit comments