Skip to content

Commit

Permalink
remove folder path from compilation output. increase compilation time…
Browse files Browse the repository at this point in the history
… to 20s.
  • Loading branch information
thecodingwizard committed Jul 16, 2024
1 parent 5c072ea commit 48360b0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,13 @@ pub fn compile(compile_request: CompileRequest) -> Result<CompileResponse> {
.to_str()
.unwrap(),
compile_request.compiler_options,
tmp_dir
.path()
.join(&program_filename)
.as_os_str()
.to_str()
.unwrap(),
program_filename.as_os_str().to_str().unwrap(),
),
Language::Java21 => format!(
"javac -d {} {} {}",
tmp_out_dir.path().as_os_str().to_str().unwrap(),
compile_request.compiler_options,
tmp_dir
.path()
.join(&program_filename)
.as_os_str()
.to_str()
.unwrap(),
program_filename.as_os_str().to_str().unwrap(),
),
Language::Py12 => format!(
"cp {} {}",
Expand All @@ -157,7 +147,7 @@ pub fn compile(compile_request: CompileRequest) -> Result<CompileResponse> {
tmp_dir.path(),
CommandOptions {
stdin: String::new(),
timeout_ms: 10000,
timeout_ms: 20000,
},
)?;

Expand Down

0 comments on commit 48360b0

Please sign in to comment.