shed more light on compile error

This commit is contained in:
rdb 2011-07-25 08:06:34 +00:00
parent 455c9b7f69
commit d52509675f
2 changed files with 3 additions and 1 deletions

View File

@ -1333,7 +1333,7 @@ def CompileAnything(target, inputs, opts, progress = None):
elif (infile.endswith(".rc") or infile.endswith(".r")):
ProgressOutput(progress, "Building resource object", target)
return CompileResource(target, infile, opts)
exit("Don't know how to compile: "+target)
exit("Don't know how to compile: %s from %s" % (target, inputs))
##########################################################################################
#

View File

@ -1921,6 +1921,8 @@ def CalcLocation(fn, ipath):
if (fn.endswith(".yxx")): return CxxFindSource(fn, ipath)
if (fn.endswith(".lxx")): return CxxFindSource(fn, ipath)
if (fn.endswith(".pdef")):return CxxFindSource(fn, ipath)
if (fn.endswith(".egg")): return OUTPUTDIR+"/models/"+fn
if (fn.endswith(".egg.pz")):return OUTPUTDIR+"/models/"+fn
if (sys.platform.startswith("win")):
if (fn.endswith(".def")): return CxxFindSource(fn, ipath)
if (fn.endswith(".rc")): return CxxFindSource(fn, ipath)