google / bazel_rules_install

Bazel rules for installing build results. Similar to `make install`.
Apache License 2.0
37 stars 14 forks source link

Use a config transition to set compilation_mode to "opt" #22

Closed bttk closed 4 years ago

bttk commented 4 years ago

installer() rule by default depends now on targets built with '-c opt'

To disable this override of a command line flag use compilation_mode = "" attribute:

installer(
    name = "install_foo",
    compilation_mode = "",
    data = [":foo"],
)

Alternatively you can force a debug build:

installer(
    name = "install_foo_dbg",
    compilation_mode = "dbg",
    data = [":foo"],
)
bttk commented 4 years ago

@juliexxia Please take a look (specifically installer/def.bzl)