Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
3a97ba42
Commit
3a97ba42
authored
Jun 10, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort execution if we find an unknown source file type
parent
a78ed644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
srcfile.py
hdlmake/srcfile.py
+4
-0
No files found.
hdlmake/srcfile.py
View file @
3a97ba42
...
...
@@ -419,4 +419,8 @@ def create_source_file(path, module, library=None,
new_file
=
LATTICE_FILE_DICT
[
extension
](
path
=
path
,
module
=
module
)
elif
extension
in
MICROSEMI_FILE_DICT
:
new_file
=
MICROSEMI_FILE_DICT
[
extension
](
path
=
path
,
module
=
module
)
else
:
logging
.
error
(
"Cannot create source file
%
s, "
"unknown file extension
%
s"
,
path
,
extension
)
quit
()
return
new_file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment