File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
clang/tools/3c/utils/port_tools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,19 +79,19 @@ def parseTheArg():
79
79
if not args .skip_exec and (not args .prog_name or not os .path .isfile (args .prog_name )):
80
80
logging .error ("Error: --prog_name argument is not a valid file.." )
81
81
logging .error ("Provided argument: {} is not a file." .format (args .prog_name ))
82
- sys .exit ()
82
+ sys .exit (1 )
83
83
84
84
if not args .project_path or not os .path .isdir (args .project_path ):
85
85
logging .error ("Error: --project_path argument must be the name of a directory." )
86
86
logging .error ("Provided argument: {} is not a directory." .format (args .project_path ))
87
- sys .exit ()
87
+ sys .exit (1 )
88
88
89
89
if not args .build_dir :
90
90
args .build_dir = args .project_path
91
91
if not os .path .isdir (args .build_dir ):
92
92
logging .error ("Error: --build_dir argument must be the name of a directory." )
93
93
logging .error ("Provided argument: {} is not a directory." .format (args .build_dir ))
94
- sys .exit ()
94
+ sys .exit (1 )
95
95
96
96
return args
97
97
@@ -104,7 +104,7 @@ def parseTheArg():
104
104
if not os .path .exists (compileCmdsJson ):
105
105
logging .error ("Error: Build directory does not contain compile_commands.json." )
106
106
logging .error ("compile_commands.json file: {} does not exist." .format (compileCmdsJson ))
107
- sys .exit ()
107
+ sys .exit (1 )
108
108
109
109
logging .info ("Trying to convert all the source files to header files" )
110
110
run3C (progArgs .prog_name , progArgs .extra_3c_args ,
You can’t perform that action at this time.
0 commit comments