-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC appears to only link against static CRT #10289
Comments
Strangely, which I run |
Furthermore, any reason gRPC is only built as static lib. Following option in port file appears to indicate so: |
@LilyWangL Thanks for your reply. OK that's no problem if it builds as a static lib. However, I just want to confirm my understanding. gRPC is built as a static lib, however it's linked against the dynamic CRT, correct? Thanks. |
If you build grpc:x86-windows, you will get a static lib and it's linked the dynamic CRT. |
Thanks for the confirmation. |
Is your feature request related to a problem? Please describe.
the gRPC port appears to build gRPC against static CRT using the following option:
-DgRPC_MSVC_STATIC_RUNTIME=${gRPC_MSVC_STATIC_RUNTIME}
This is problematic when consuming the gRPC libraries in a solution that only relies on the dynamic CRT.
In my triplet override I am specifying
set(VCPKG_CRT_LINKAGE dynamic)
, however I believe that is getting ignored by the-DgRPC_MSVC_STATIC_RUNTIME=${gRPC_MSVC_STATIC_RUNTIME}
option.Proposed solution
Allow gRPC to be built against dynamic CRT.
Describe alternatives you've considered
I am thinking of changing the port to link against dynamic CRT, however I'm not sure how to best do that as I'm not familiar with the side effects of the gRPC options.
Additional context
Visual Studio 2015, Windows.
The text was updated successfully, but these errors were encountered: