Commit e0bde71b authored by PoroCYon's avatar PoroCYon Committed by PoroCYon
Browse files

show a warning if a required binary isn't found, should 'fix' #2

parent 48fa48e7
......@@ -46,6 +46,13 @@ def main():
args = parser.parse_args()
for x in ['nasm','cc','scanelf','readelf']:
val = args.__dict__[x]
if val is None or not os.path.isfile(val):
eprintf("'" + x + "' binary" + (" " if val is None
else " ('" + val + "')") + " not found")
sys.exit(1)
if args.libdir is None: args.libdir = []
arch = args.target.tolower() if len(args.target)!=0 \
else decide_arch(args.input)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment