2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-28 08:43:26 +00:00

Configure AR tool for meson

This commit is contained in:
maleo 2024-10-16 17:58:49 +00:00
parent e67c45c8db
commit 3c433ddfd4

View file

@ -79,6 +79,8 @@ def _create_meson_script(configureParameters):
script.append("##export_var## CC {}".format(_absolutize(ctx.workspace_name, tools.cc)))
if " " not in tools.cxx:
script.append("##export_var## CXX {}".format(_absolutize(ctx.workspace_name, tools.cxx)))
if " " not in tools.cxx_linker_static:
script.append("##export_var## AR {}".format(_absolutize(ctx.workspace_name, tools.cxx_linker_static)))
# set flags same as foreign_cc/private/cc_toolchain_util.bzl
# cannot use get_flags_info() because bazel adds additional flags that