blob: 9a28b312c2de68481df774875330fd570f336ad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Macros for building MKL code.
def if_mkl(if_true, if_false = []):
"""Shorthand for select()'ing on whether we're building with MKL.
Returns a select statement which evaluates to if_true if we're building
with MKL enabled. Otherwise, the select statement evaluates to if_false.
"""
return select({
"//third_party/mkl:using_mkl": if_true,
"//conditions:default": if_false
})
|