diff --git a/third_party/mlir/BUILD b/third_party/mlir/BUILD index 180a4c8c463..13f4a80532b 100644 --- a/third_party/mlir/BUILD +++ b/third_party/mlir/BUILD @@ -1251,7 +1251,7 @@ cc_binary( "tools/mlir-tblgen/mlir-tblgen.cpp", ], includes = ["include"], - linkopts = ["-lpthread"], + linkopts = ["-lpthread", "-lm"], deps = [ ":Support", ":TableGen",