Skip to content

Commit

Permalink
Update CPP_COMPILE_COMMAND_TEMPLATE with -fmax-include-depth=10
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Oct 1, 2024
1 parent 7536349 commit 476242f
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 -static";
const CPP_COMPILE_COMMAND_TEMPLATE: &str = "g++ -fmax-include-depth=10 {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 476242f

Please sign in to comment.