Skip to content

Commit

Permalink
ocaml_archive: add configurable defaults to opts
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileink committed Jan 4, 2021
1 parent 124de4d commit 5153e57
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions ocaml/_rules/ocaml_archive.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,8 @@ def _ocaml_archive_impl(ctx):
if mode == "bytecode":
args.add("-custom")

# args.add("-w", ctx.attr.warnings)
# options = ctx.attr.opts
# # if ctx.attr.nocopts:
# args.add_all(options)
# if ctx.attr.alwayslink:
# args.add("-linkall")

options = get_options(rule, ctx)
args.add_all(options)
# lflags = " ".join(ctx.attr.linkopts) if ctx.attr.linkopts else ""
configurable_defaults = get_options(rule, ctx)
args.add_all(configurable_defaults)

args.add_all(ctx.attr.cc_linkopts, before_each="-ccopt")
# if len(ctx.addr.cc_linkall) > 0:
Expand Down

0 comments on commit 5153e57

Please sign in to comment.