blob: fb3f3762a1ba88d74842d5bc2014fcf9c44f7bc3 [file] [log] [blame]
Brian Silverman6470f442018-08-05 12:08:16 -07001load("@//tools/build_rules:fortran.bzl", "f2c_library")
Brian Silverman1720b7a2018-09-02 17:53:46 -07002load("@//tools/build_rules:select.bzl", "compiler_select")
Austin Schuh1f9aeb42015-11-12 23:34:49 -08003
Philipp Schradercc016b32021-12-30 08:59:58 -08004# TODO(austin): I bet this is wrong.
5licenses(["restricted"])
6
Brian Silvermand3ad1652018-02-18 22:16:29 -05007f2c_library(
Brian Silverman6470f442018-08-05 12:08:16 -07008 name = "slicot",
9 srcs = glob(["slycot/src/*.f"]),
10 copts = [
11 # This gets triggered because it doesn't realize xerbla doesn't return.
12 # TODO(Brian): Try and get __attribute__((noreturn)) on xerbla somehow.
13 "-Wno-uninitialized",
Brian Silverman4c7235a2021-11-17 19:04:37 -080014 "-Wno-unused-but-set-variable",
Brian Silverman1720b7a2018-09-02 17:53:46 -070015 ] + compiler_select({
16 "clang": [
Brian Silverman4c7235a2021-11-17 19:04:37 -080017 "-Wno-unused-but-set-parameter",
Austin Schuh50e3dca2023-07-23 14:34:27 -070018 "-Wno-deprecated-non-prototype",
Brian Silverman1720b7a2018-09-02 17:53:46 -070019 ],
20 "gcc": [
21 "-Wno-discarded-qualifiers",
22 ],
23 }),
Brian Silverman6470f442018-08-05 12:08:16 -070024 visibility = ["//visibility:public"],
25 deps = [
26 "@clapack",
27 ],
Brian Silvermand3ad1652018-02-18 22:16:29 -050028)