Add libm linkage to toolchains

PiperOrigin-RevId: 513350744
pull/12109/head
Mike Kruskal 2 years ago committed by Deanna Garcia
parent c9092fe0ed
commit 964a7f0e05
  1. 1
      toolchain/cc_toolchain_config.bzl

@ -98,6 +98,7 @@ def _impl(ctx):
flags = [ flags = [
"-B" + ctx.attr.linker_path, "-B" + ctx.attr.linker_path,
"-lstdc++", "-lstdc++",
"-lm",
"--target=" + ctx.attr.target_full_name, "--target=" + ctx.attr.target_full_name,
] + ctx.attr.extra_linker_flags, ] + ctx.attr.extra_linker_flags,
), ),

Loading…
Cancel
Save