Skip to content

Commit

Permalink
Add -O2 -static to CPP_COMPILE_COMMAND_TEMPLATE
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Sep 29, 2024
1 parent 6d2881f commit f24a7f5
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}";
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 f24a7f5

Please sign in to comment.