Commit 614a927f authored by Greg Ward's avatar Greg Ward

Changed 'object_filenames()' to raise exception instead of silently carrying

on if it sees a filename with unknown extension.
parent 869c5870
...@@ -671,7 +671,9 @@ class CCompiler: ...@@ -671,7 +671,9 @@ class CCompiler:
for src_name in source_filenames: for src_name in source_filenames:
(base, ext) = os.path.splitext (src_name) (base, ext) = os.path.splitext (src_name)
if ext not in self.src_extensions: if ext not in self.src_extensions:
continue raise UnknownFileError, \
"unknown file type '%s' (from '%s')" % \
(ext, src_name)
if strip_dir: if strip_dir:
base = os.path.basename (base) base = os.path.basename (base)
obj_names.append (os.path.join (output_dir, obj_names.append (os.path.join (output_dir,
......
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