Explicitly add cuda
and cxx
features to cc_* rules
#15499
Labels
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Rules-CPP
Issues for C++ rules
type: feature request
Description of the feature request:
Native cuda support (#6578) is pretty close with clang. Things almost run out of the box with a properly configured clang toolchain. There's still a bit of friction since cuda and cpp share the same toolchain, there should be a near native way of distinguishing compilation types.
What underlying problem are you trying to solve with this feature?
Proposal, add features
cxx
andcuda
in https://cs.opensource.google/bazel/bazel/+/master:tools/cpp/unix_cc_toolchain_config.bzl;l=218;drc=2fc2f4cac889919e80c7932e7933b281a1bce3e3and then add the relevant
attrs
for toolchain use.This will let users distinguish between
cuda
andcxx
flags on the toolchain level. I don't think the flags need to be mutually exclusive. A second effort would to be document all these flags (see #8706 (comment))Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
This request comes from trying to resolve this issue: tweag/rules_nixpkgs#218 with a clang toolchain.
The text was updated successfully, but these errors were encountered: