Skip to content

Commit e0df9ba

Browse files
dot-asmthomcc
authored andcommitted
Allow to use clang++ with CUDA compiler.
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.
1 parent 4ce4117 commit e0df9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ impl Build {
16921692
cmd.args.push("--target=aarch64-unknown-windows-gnu".into())
16931693
}
16941694
} else {
1695-
cmd.args.push(format!("--target={}", target).into());
1695+
cmd.push_cc_arg(format!("--target={}", target).into());
16961696
}
16971697
}
16981698
}

0 commit comments

Comments
 (0)