Skip to content

Commit

Permalink
Allow to use clang++ with CUDA compiler.
Browse files Browse the repository at this point in the history
CUDA compiler supports clang++, but it wasn't possible to use it with
cc-rs, because --target option was passed to nvcc instead of clang.
  • Loading branch information
dot-asm authored and thomcc committed Nov 23, 2022
1 parent 4ce4117 commit e0df9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ impl Build {
cmd.args.push("--target=aarch64-unknown-windows-gnu".into())
}
} else {
cmd.args.push(format!("--target={}", target).into());
cmd.push_cc_arg(format!("--target={}", target).into());
}
}
}
Expand Down

0 comments on commit e0df9ba

Please sign in to comment.