@@ -170,7 +170,7 @@ def parse_args():
170170
171171def main ():
172172 if sys .platform not in ["cygwin" , "win32" , "linux" ]:
173- err (f"{ sys .platform } not supported" )
173+ err (f"{ sys .platform } not supported" , "build_locally" )
174174 args = parse_args ()
175175 setup_dir = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
176176
@@ -183,7 +183,10 @@ def main():
183183 clean_build_dir (setup_dir )
184184
185185 if args .no_level_zero and args .target_level_zero :
186- err ("Cannot combine --no-level-zero and --target-level-zero" )
186+ err (
187+ "Cannot combine --no-level-zero and --target-level-zero" ,
188+ "build_locally" ,
189+ )
187190
188191 # Level Zero state (on unless explicitly disabled)
189192 if args .no_level_zero :
@@ -204,7 +207,7 @@ def main():
204207
205208 # handle architecture conflicts
206209 if args .target_hip is not None and not args .target_hip .strip ():
207- err ("--target-hip requires an explicit architecture" )
210+ err ("--target-hip requires an explicit architecture" , "build_locally" )
208211
209212 # CUDA/HIP targets
210213 if args .target_cuda :
@@ -221,7 +224,7 @@ def main():
221224
222225 # ignore pre-existing CMAKE_ARGS for determinism in build driver
223226 if "CMAKE_ARGS" in env and env ["CMAKE_ARGS" ].strip ():
224- warn ("Ignoring pre-existing CMAKE_ARGS in environment" )
227+ warn ("Ignoring pre-existing CMAKE_ARGS in environment" , "build_locally" )
225228 del env ["CMAKE_ARGS" ]
226229
227230 env ["CMAKE_ARGS" ] = cmake_args
0 commit comments