rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

Cannot use @rules_foreign_cc//toolchains:current_cmake_toolchain in genrule

Open yeswalrus opened this issue 3 years ago • 2 comments

I'm attempting to run only the generate step of a cmake project, not actually build any targets, in order to generate a file created by configure_file. My best guess is I'd do this via a custom genrule, but I'm running into a pretty fundamental issue: $(CMAKE) isn't valid in a genrule with @rules_foreign_cc//toolchains:current_cmake_toolchain listed as one of the toolchains. Is this user error? The documentation seems to indicate that this rule is specifically meant for use in genrules. Using bazel 5.1.1 for reference

yeswalrus avatar Jun 10 '22 03:06 yeswalrus

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_foreign_cc!

github-actions[bot] avatar Dec 07 '22 22:12 github-actions[bot]

Does https://github.com/bazelbuild/rules_foreign_cc/commit/ee079b7261b9b4d1e01474e35fe45b25d76d8837 fix this?

jsharpe avatar Dec 15 '22 15:12 jsharpe