Skip to content

Commit 3821093

Browse files
author
Andre Souto
committed
Fixed parsing of GHDL version to catch -dev versions
1 parent 69b3515 commit 3821093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdlcc/builders/ghdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _makeRecords(self, line):
9090
def _checkEnvironment(self):
9191
stdout = self._subprocessRunner(['ghdl', '--version'])
9292
self._version = \
93-
re.findall(r"(?<=GHDL)\s+([\w\.]+)\s+", \
93+
re.findall(r"(?<=GHDL)\s+([^\s]+)\s+", \
9494
stdout[0])[0]
9595
self._logger.info("GHDL version string: '%s'. " + \
9696
"Version number is '%s'", \

0 commit comments

Comments
 (0)