old_contents: """Rules and macros for MLIR"""
  
  load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda_is_configured")
  
  if_cuda_available = if_cuda_is_configured
  
  def _cc_headers_only_impl(ctx):
      return CcInfo(compilation_context = ctx.attr.src[CcInfo].compilation_context)
  
  cc_headers_only = rule(
      implementation = _cc_headers_only_impl,
      attrs = {
          "src": attr.label(
              mandatory = True,
              providers = [CcInfo],
          ),
      },
      doc = "Provides the headers from 'src' without linking anything.",
      provides = [CcInfo],
  )
  
new_contents: """Rules and macros for MLIR"""
  
  def if_cuda_available(if_true, if_false = []):
      return if_false
  
  def _cc_headers_only_impl(ctx):
      return CcInfo(compilation_context = ctx.attr.src[CcInfo].compilation_context)
  
  cc_headers_only = rule(
      implementation = _cc_headers_only_impl,
      attrs = {
          "src": attr.label(
              mandatory = True,
              providers = [CcInfo],
          ),
      },
      doc = "Provides the headers from 'src' without linking anything.",
      provides = [CcInfo],
  )
  
subject: Disable CUDA in @llvm-project//mlir.