Skip to content

Commit

Permalink
pass -std=c++11 to libclang
Browse files Browse the repository at this point in the history
  • Loading branch information
glowcoil committed Jul 17, 2023
1 parent c4f9152 commit d92e6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com-scrape/src/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl TranslationUnit {
unsafe {
let index = clang_createIndex(0, 0);

let mut args = vec![c_str!("-x"), c_str!("c++")];
let mut args = vec![c_str!("-x"), c_str!("c++"), c_str!("-std=c++11")];
for path in &paths_cstrs {
args.extend_from_slice(&[c_str!("-I"), path.as_ptr()]);
}
Expand Down

0 comments on commit d92e6cf

Please sign in to comment.