Skip to content

Commit 92af16c

Browse files
authored
Merge pull request #74 from limdor/fix_cpp_example
Remove auto option from dynamic_mode
2 parents ccdabea + 08b30a9 commit 92af16c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cpp/Readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bazel build //:my_lib
100100

101101
In this example we have one executable and one library. This brings us to two possibilities, to load the library during runtime (dynamic linking) or embed it into the executable (static linking).
102102

103-
The way to control it in Bazel is using [`--dynamic_mode`](https://docs.bazel.build/versions/master/user-manual.html#flag--dynamic_mode). It has four options: `auto`, `default`, `fully` and `off`. The most relevant for us are `fully` and `off`.
103+
The way to control it in Bazel is using [`--dynamic_mode`](https://bazel.build/docs/user-manual#dynamic-mode). It has three options: `default`, `fully` and `off`. The most relevant for us are `fully` and `off`.
104104

105105
If we build the binary using `off` it will do static linking in all the cases that it is possible. Using `fully` it will do dynamic linking with all the targets.
106106

@@ -111,3 +111,7 @@ bazel build //:hello_world --dynamic_mode=off
111111
```
112112

113113
You can also pass it when calling directly `bazel run`.
114+
115+
## Related Bazel github issues
116+
117+
* [#20707: [bazel.build] Problem with /docs/user-manual (open)](https://github.com/bazelbuild/bazel/issues/20707)

0 commit comments

Comments
 (0)