ports/lang/gleam/patches/patch-compiler-cli_src_shell_rs

14 lines
516 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Consider MODERL_VERSION
Index: compiler-cli/src/shell.rs
--- compiler-cli/src/shell.rs.orig
+++ compiler-cli/src/shell.rs
@@ -22,7 +22,7 @@ pub fn command() -> Result<(), Error> {
ctrlc::set_handler(move || {}).expect("Error setting Ctrl-C handler");
// Prepare the Erlang shell command
- let mut command = Command::new("erl");
+ let mut command = Command::new("erl${MODERL_VERSION}");
// Print character lists as lists
let _ = command.arg("-stdlib").arg("shell_strings").arg("false");