Skip to content

Commit

Permalink
Revert "Remove -static param for C++ compile"
Browse files Browse the repository at this point in the history
This reverts commit 4b97165.
  • Loading branch information
slhmy committed Sep 29, 2024
1 parent 15a848e commit fa2be8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge-core/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const TEMPLATE_ARG_SRC_PATH: &str = "{src_path}";
const TEMPLATE_ARG_TARGET_PATH: &str = "{target_path}";

const RUST_COMPILE_COMMAND_TEMPLATE: &str = "rustc {src_path} -o {target_path}";
const CPP_COMPILE_COMMAND_TEMPLATE: &str = "g++ {src_path} -o {target_path} -O2";
const CPP_COMPILE_COMMAND_TEMPLATE: &str = "g++ {src_path} -o {target_path} -O2 -static";
const PYTHON_COMPILE_COMMAND_TEMPLATE: &str = "cp {src_path} {target_path}";

#[derive(Clone)]
Expand Down

0 comments on commit fa2be8e

Please sign in to comment.