Re: [PATCH 15/16] Highlight source code using GNU Source Highlight

Tom Tromey
2019-11-24T17:41:35Z

Andrew> I know this patch has been in for almost a year now. But I have a
Andrew> question, is there a way to build GNU Source Highlight as a static
Andrew> library and have it built at the top level? Like what is done for
Andrew> GMP/MPFR for GCC? It would reduce how I built a gdb that is for a
Andrew> non-native target.

There's currently no support for dropping the sources into the tree.
However, I think it would be fine if you wanted to add such support.

Andrew> If it cannot be compiled at a top-level, does it support as a static
Andrew> library?

Eli answered this in the affirmative; I have never tried it myself.

I've considered also adding support for Pygments, in addition to Source
Highlight. In some situations that might be simpler to distribute; and
also it would mean that one could just install Pygments and have it
suddenly start working.

Tom