build/generic_platform: keep language to None if None after tools.language_by_filename

This commit is contained in:
Florent Kermarrec 2019-10-15 12:13:42 +02:00
parent 14dae8bd73
commit 98c224be15
1 changed files with 0 additions and 3 deletions

View File

@ -322,9 +322,6 @@ class GenericPlatform:
def add_source(self, filename, language=None, library=None):
if language is None:
language = tools.language_by_filename(filename)
if language is None:
language = "verilog"
if library is None:
library = "work"