You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f5b75ea
Browse filesBrowse the repository at this point in the historyBrowse files
-Dpic=[bool] Produce Position Independent Code. Defaults to true when link_mode is dynamic
60
64
```
65
+
66
+
## System Integration
67
+
68
+
By default, libgrpc is built from source, to allow cross-compilation and reproducibility.
69
+
70
+
However, for security reason, or to not waste disk / CPU / time re-compiling a huge library already installed on the system, it might be preferable to use the system's `.so`/`.dylib`
71
+
72
+
For this purpose, a system integration is available. When building the final binary:
73
+
74
+
```shell
75
+
zig build -fsys=grpc
76
+
```
77
+
78
+
will use the system's gRPC library. The `cgrpc` module then links it, and none of the sources libgrpc is built from get fetched.
79
+
80
+
The `grpc` artifact is not available in this mode, which is why C users check the same option, as shown in [Use](#use).
81
+
As system integration options are shared by the whole build, they get the same answer as this package.
0 commit comments