blob: 21c0df723ed894798328938617f3a835eab5f2b2 [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",
Brian Silverman1720b7a2018-09-02 17:53:46 -070018 ],
19 "gcc": [
20 "-Wno-discarded-qualifiers",
21 ],
22 }),
Brian Silverman6470f442018-08-05 12:08:16 -070023 visibility = ["//visibility:public"],
24 deps = [
25 "@clapack",
26 ],
Brian Silvermand3ad1652018-02-18 22:16:29 -050027)