C++ toolchain: modify deafult ar params

79 views
Skip to first unread message

Manish Singh

unread,
Feb 14, 2024, 10:48:24 AMFeb 14
to bazel-discuss
Hi,
after running bazel aquery coommand ,
I see following params for cpparchive

  "/usr/bin/ar",
         "rcsD",
         "bazel-out/k8-fastbuild/bin/lib/libhello-time.a",
         "bazel-out/k8-fastbuild/bin/lib/_objs/hello-time/hello-time.pic.o",
         "@bazel-out/k8-fastbuild/bin/lib/libhello-time.a-2.params"
         
Here I see some default ar parameters like 'rcsD'

I am looking a way to customize the default paramters passed to ar.

Appreciate help.

David Turner

unread,
Feb 16, 2024, 5:06:07 AMFeb 16
to Manish Singh, bazel-discuss
This seems to be controlled by a C++ toolchain feature named `archiver_flags`.

I don't know of an easy way to change the values, without redefining your own C++ toolchain definition (which in itself is a major undertaking), maybe someone on the list has an idea though?


--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/e440ad62-9c70-4635-a237-c2c3c53e4811n%40googlegroups.com.

Manish Singh

unread,
Feb 16, 2024, 5:31:38 AMFeb 16
to David Turner, bazel-discuss
Thank you, I have already implemented toolchain. 
Reply all
Reply to author
Forward
0 new messages