scrapinghub / python-crfsuite

A python binding for crfsuite
MIT License
769 stars 223 forks source link

Use gcc-specific _compile method for triplet-gcc as well #160

Open karcherm opened 1 month ago

karcherm commented 1 month ago

On debian bookworm, distutils invokes gcc as x86_64-linux-gnu-gcc, so allow command line elements ending in "-gcc" as well as command line elements being exactly "gcc". Without this change, -std=c99 doesn't get added to the compile command line. Surprisingly, it still compiles with gcc 12, though.