File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def run(
28
28
compiler_root = None ,
29
29
cmake_executable = None ,
30
30
use_glog = False ,
31
+ cmake_opts = "" ,
31
32
):
32
33
build_system = None
33
34
@@ -57,6 +58,8 @@ def run(
57
58
"-DDPCTL_ENABLE_L0_PROGRAM_CREATION=" + ("ON" if level_zero else "OFF" ),
58
59
"-DDPCTL_ENABLE_GLOG:BOOL=" + ("ON" if use_glog else "OFF" ),
59
60
]
61
+ if cmake_opts :
62
+ cmake_args += cmake_opts .split ()
60
63
subprocess .check_call (
61
64
cmake_args , shell = False , cwd = setup_dir , env = os .environ
62
65
)
@@ -110,6 +113,13 @@ def run(
110
113
dest = "glog" ,
111
114
action = "store_true" ,
112
115
)
116
+ driver .add_argument (
117
+ "--cmake-opts" ,
118
+ help = "DPCTLSyclInterface uses Google logger" ,
119
+ dest = "cmake_opts" ,
120
+ default = "" ,
121
+ type = str ,
122
+ )
113
123
args = parser .parse_args ()
114
124
115
125
args_to_validate = [
@@ -163,4 +173,5 @@ def run(
163
173
compiler_root = args .compiler_root ,
164
174
cmake_executable = args .cmake_executable ,
165
175
use_glog = args .glog ,
176
+ cmake_opts = args .cmake_opts ,
166
177
)
You can’t perform that action at this time.
0 commit comments