Compile external scanners w/ debug symbols in test suite

This commit is contained in:
Max Brunsfeld 2016-12-26 11:08:35 -08:00
parent 2fa7b453c8
commit 0f039721dd

View file

@ -96,6 +96,7 @@ const TSLanguage *load_language(const string &source_filename,
};
if (!external_scanner_filename.empty()) {
compile_args.push_back("-g");
string extension = external_scanner_filename.substr(external_scanner_filename.rfind("."));
if (extension == ".c") {
compile_args.push_back("-xc");