mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
build: add target armv7-unknown-linux-gnueabihf
, aarch64-unknown-linux-gnu
This commit is contained in:
parent
5dbcb7721c
commit
7c9e47d015
3 changed files with 11 additions and 9 deletions
|
@ -3,6 +3,7 @@
|
|||
//! CPythonを呼び出すためのユーティリティー
|
||||
use std::process::Command;
|
||||
|
||||
use crate::fn_name_full;
|
||||
use crate::serialize::get_magic_num_from_bytes;
|
||||
|
||||
#[cfg(unix)]
|
||||
|
@ -535,11 +536,11 @@ pub fn which_python() -> String {
|
|||
let out = Command::new(cmd)
|
||||
.arg(python)
|
||||
.output()
|
||||
.expect("python not found");
|
||||
.unwrap_or_else(|_| panic!("{}: {python} not found", fn_name_full!()));
|
||||
let res = String::from_utf8(out.stdout).unwrap();
|
||||
let res = res.split('\n').next().unwrap_or("").replace('\r', "");
|
||||
if res.is_empty() {
|
||||
println!("python not found");
|
||||
println!("{}: {python} not found", fn_name_full!());
|
||||
std::process::exit(1);
|
||||
} else if res.contains("pyenv") && cfg!(windows) {
|
||||
println!("cannot use pyenv-win"); // because pyenv-win does not support `-c` option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue