Adding a convenience baezel rule - rocm_library
This commit is contained in:
parent
3f95825a35
commit
b65d6c0533
4
third_party/gpus/rocm/build_defs.bzl.tpl
vendored
4
third_party/gpus/rocm/build_defs.bzl.tpl
vendored
@ -47,3 +47,7 @@ def if_rocm_is_configured(x):
|
|||||||
if rocm_is_configured():
|
if rocm_is_configured():
|
||||||
return x
|
return x
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
def rocm_library(copts = [], **kwargs):
|
||||||
|
"""Wrapper over cc_library which adds default ROCm options."""
|
||||||
|
native.cc_library(copts = rocm_default_copts() + copts, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user