build/generic_platform: keep language to None if None after tools.language_by_filename
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 15 Oct 2019 10:13:42 +0000 (12:13 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 15 Oct 2019 10:14:37 +0000 (12:14 +0200)
litex/build/generic_platform.py

index cc5c0221283dea6e31079e476fbb93d27bc54d62..3cd830f9a589d5ab73b964167fee472c057b4fc1 100644 (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"