Skip to content

Conversation

keith
Copy link
Member

@keith keith commented Mar 24, 2025

With this users can pass
--@rules_cc//cc/toolchains/args/archiver_flags:use_libtool_on_macos=false
to always use ar, even when targeting macOS. This works well for
llvm-ar.

Fixes #331

With this users can pass
`--@rules_cc//cc/toolchains/args/archiver_flags:use_libtool_on_macos=false`
to always use ar, even when targeting macOS. This works well for
llvm-ar.

Fixes bazelbuild#331
)

config_setting(
name = "use_libtool_on_macos_setting",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these targets be public to allow toolchain implementors to select on it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm what would be the use case? I guess if you're avoiding this feature maybe you should Add your own flag? Not sure

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically this; #403 i am not sure what's the best approach here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add override path for archiver_flags in rules based toolchain

3 participants