blob: 82cc72ced7c4ca63b407341a255e90c5314ed14b [file] [log] [blame]
# TODO(austin): I bet this is wrong.
licenses(["restricted"])
load("@//tools/build_rules:fortran.bzl", "f2c_library")
load("@//tools/build_rules:select.bzl", "compiler_select")
f2c_library(
name = "slicot",
srcs = glob(["slycot/src/*.f"]),
copts = [
# This gets triggered because it doesn't realize xerbla doesn't return.
# TODO(Brian): Try and get __attribute__((noreturn)) on xerbla somehow.
"-Wno-uninitialized",
] + compiler_select({
"clang": [
],
"gcc": [
"-Wno-unused-but-set-variable",
"-Wno-discarded-qualifiers",
],
}),
visibility = ["//visibility:public"],
deps = [
"@clapack",
],
)