mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
generic_platform: use set for sources
This commit is contained in:
parent
665fff8390
commit
eed1d5cb2e
1 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ class GenericPlatform:
|
|||
if name is None:
|
||||
name = self.__module__.split(".")[-1]
|
||||
self.name = name
|
||||
self.sources = []
|
||||
self.sources = set()
|
||||
self.verilog_include_paths = set()
|
||||
self.finalized = False
|
||||
|
||||
|
@ -323,7 +323,7 @@ class GenericPlatform:
|
|||
if library is None:
|
||||
library = "work"
|
||||
|
||||
self.sources.append((os.path.abspath(filename), language, library))
|
||||
self.sources.add((os.path.abspath(filename), language, library))
|
||||
|
||||
def add_sources(self, path, *filenames, language=None, library=None):
|
||||
for f in filenames:
|
||||
|
|
Loading…
Reference in a new issue