Skip to content

Commit

Permalink
fix precompilation header bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingwizard committed Jul 17, 2024
1 parent 0b82bb6 commit d20b29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn precompile_headers(compile_request: &CompileRequest) -> Result<()> {
|| !compile_request.compiler_options.contains("-O2")
|| !compile_request
.compiler_options
.contains(&format!("--std=c++{cpp_version}"))
.contains(&format!("-std=c++{cpp_version}"))
|| !compile_request
.source_code
.contains("#include <bits/stdc++.h>")
Expand Down

0 comments on commit d20b29a

Please sign in to comment.