mirror of https://github.com/YosysHQ/nextpnr.git
Gowin. Ignore empty lines.
Including those containing nothing but spaces and tabs. Fixes https://github.com/YosysHQ/apicula/issues/432 Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
58e3b85866
commit
627e7ea547
|
|
@ -112,6 +112,11 @@ struct GowinCstReader
|
|||
|
||||
while (!in.eof()) {
|
||||
std::getline(in, line);
|
||||
boost::trim_right(line);
|
||||
if (line.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
cst_type = ioloc;
|
||||
if (!std::regex_match(line, match, iobre)) {
|
||||
if (std::regex_match(line, match, portre)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue