Skip to content

Commit

Permalink
Print a warning message when the compiler path doesn't exist.
Browse files Browse the repository at this point in the history
Either `CLANG_CUDA_COMPILER_PATH` or `CC` environment variables should be set. If they are not set, the repository rule will try to find `clang` alias on the system. If nothing is found, the repository rule prints a warning.

PiperOrigin-RevId: 694571530
  • Loading branch information
Google-ML-Automation committed Nov 8, 2024
1 parent a6d880d commit 982aebd
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def _find_cc(repository_ctx):
) or get_host_environ(repository_ctx, _CC)
if cc_name_from_env:
cc_name = cc_name_from_env
if cc_name.startswith("/"):
# Return the absolute path.
return cc_name
cc = which(repository_ctx, cc_name, allow_failure = True)
if not cc:
print(("Cannot find {}, either correct your path," +
Expand Down

0 comments on commit 982aebd

Please sign in to comment.