on master help sign in
mention the C++ compiler in the grammar build failure message (#2597)
93e6eacMichael Davis
helix-loader/src/grammar.rs+3−1
@@ -355,7 +355,9 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
355 }
355 }
356 }
356 }
357
357
358+ let output = command
359+ .output()
358− let output = command.output().context("Failed to execute C compiler")?;
360+ .context("Failed to execute C/C++ compiler")?;
359 if !output.status.success() {
361 if !output.status.success() {
360 return Err(anyhow!(
362 return Err(anyhow!(
361 "Parser compilation failed.\nStdout: {}\nStderr: {}",
363 "Parser compilation failed.\nStdout: {}\nStderr: {}",