build: making alwayslink optional in Enovy CC libraries#23676
build: making alwayslink optional in Enovy CC libraries#23676alyssawilk merged 9 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
|
cc @keith I really want to run one of the Envoy builds with this true and I'm not sure how to do that. Ideas? |
a9e9011 to
93fabeb
Compare
|
I don't follow, do you mean you want to run the binary, or CI, and do you mean envoy or envoy mobile? |
|
I want to run one of the Envoy CIs with LIBRARY_DEFAULT_ALWAYSLINK = 0 |
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
bazel/envoy_library.bzl
Outdated
| deps += tcmalloc_external_deps(repository) | ||
| # If alwayslink is not specified, allow turning it off via --define=library_autolink=disabled | ||
| # alwayslink is defaulted on for envoy_cc_extensions to ensure the REGISTRY macros work. | ||
| if not(alwayslink): |
There was a problem hiding this comment.
huh, i've never seen this one. this is still false if the call site passes 0 right?
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
bazel/envoy_library.bzl
Outdated
|
|
||
| # If alwayslink is not specified, allow turning it off via --define=library_autolink=disabled | ||
| # alwayslink is defaulted on for envoy_cc_extensions to ensure the REGISTRY macros work. | ||
| if not (alwayslink): |
There was a problem hiding this comment.
if this is just the normal not keyword I think we need to check against None explicitly, otherwise I think 0 will be false-y
| if not (alwayslink): | |
| if alwayslink == None: |
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Fixing issue merging in envoyproxy/envoy#23676 Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
- Still good: - ci/run_envoy_docker.sh - tools/gen_compilation_database.py - python requirements - `LEGACY_ALWAYSLINK` is needed after envoyproxy/envoy#23676 Signed-off-by: eric846 <56563761+eric846@users.noreply.github.com>
Fixing issue merging in #23676 Signed-off-by: Alyssa Wilk <alyssar@chromium.org> Signed-off-by: JP Simard <jp@jpsim.com>
This adds a variable to change Envoy library defaults to not always link, while fixing up Envoy libraries using singletons and factory registrations to still always link.
Risk Level: high
Testing: using existing tests
Docs Changes: n/a
Release Notes: yes
Platform Specific Features: no
Part of envoyproxy/envoy-mobile#175