sdk: Use common ljd flags
Some checks failed
lint/clippy Checking for common mistakes and opportunities for code improvement
build/linux Build for the target platform: linux
build/msvc Build for the target platform: msvc
Some checks failed
lint/clippy Checking for common mistakes and opportunities for code improvement
build/linux Build for the target platform: linux
build/msvc Build for the target platform: msvc
This commit is contained in:
parent
57224622d9
commit
7080dcb8de
2 changed files with 7 additions and 2 deletions
|
@ -133,7 +133,7 @@ async fn parse_command_line_template(tmpl: &String) -> Result<CmdLine> {
|
|||
if path.file_name() == Some(OsStr::new("main.py")) {
|
||||
let arg = path.display().to_string();
|
||||
let mut cmd = CmdLine::new("python");
|
||||
cmd.arg("-c").arg(shlex::quote(&arg).to_string());
|
||||
cmd.arg(shlex::quote(&arg).to_string());
|
||||
cmd
|
||||
} else {
|
||||
CmdLine::new(path)
|
||||
|
|
|
@ -81,7 +81,12 @@ where
|
|||
.map(|c| c.into())
|
||||
.unwrap_or_else(|| Command::new("ljd"));
|
||||
|
||||
cmd.arg("-f").arg(&temp);
|
||||
cmd.arg("--catch_asserts")
|
||||
.args(["--function_def_sugar", "false"])
|
||||
.args(["--function_def_self_arg", "true"])
|
||||
.args(["--unsafe", "false"])
|
||||
.arg("-f")
|
||||
.arg(&temp);
|
||||
|
||||
tracing::debug!("Executing command: '{:?}'", cmd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue