vere icon indicating copy to clipboard operation
vere copied to clipboard

dynamically linked build

Open barter-simsum opened this issue 1 year ago • 2 comments

The old build system dynamically linked debug builds by default. We can't currently easily do this with bazel.

I would like the ability to specify desired linking type when building because a dynamically linked build is far more flexible a thing in the development cycle -- primarily because of what's possible with LD_PRELOAD -- load a profiler, load an alternative implementation of a library (e.g. malloc) and compare its results to previous, etc.

I imagine this will require making the arg to the linkstatic params in many of our cc_librarys configurable rather than statically True. Need to also understand instances of:

    features = select({
        "@platforms//os:linux": ["fully_static_link"],
        "//conditions:default": [],
    }),

barter-simsum avatar Apr 12 '23 19:04 barter-simsum

It may be easier to avoid bazel altogether and just adopt the old Makefile vere used to the new repo structure

barter-simsum avatar May 19 '23 17:05 barter-simsum

I have a CMake configuration almost working...

matthew-levan avatar Jun 08 '23 15:06 matthew-levan