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
| man | true, [false]| Instruct meson to configure the project to build the `libnvme` documentation. <br />Example: `meson .build -Dman=true`|
166
-
| python |[auto], true, false| Whether to build the Python bindings. When set to `auto`, the default, meson will check for the presence of the tools and libraries (e.g. `swig`) required to build the Python bindings. If found, meson will configure the project to build the Python bindings. If a tool or library is missing, then the Python bindings won't be built. Setting this to `true`, forces the Python bindings to be built. When set to `false`, meson will configure the project to not build the Python bindings.<br />Example: `meson .build -Dpython=false`|
| man | true, [false]| Instruct meson to configure the project to build the `libnvme` documentation. <br />Example: `meson .build -Dman=true`|
166
+
| python |[auto], enabled, disabled| Whether to build the Python bindings. When set to `auto`, the default, meson will check for the presence of the tools and libraries (e.g. `swig`) required to build the Python bindings. If found, meson will configure the project to build the Python bindings. If a tool or library is missing, then the Python bindings won't be built. Setting this to `enabled`, forces the Python bindings to be built. When set to `disabled`, meson will configure the project to not build the Python bindings.<br />Example: `meson setup .build -Dpython=disabled`|
167
167
168
168
### Changing the build options from the command-line (i.e. w/o modifying any files)
169
169
170
170
To configure a build for debugging purposes (i.e. optimization turned
171
171
off and debug symbols enabled):
172
172
173
173
```bash
174
-
meson .build -Dbuildtype=debug
174
+
meson setup .build --buildtype=debug
175
175
```
176
176
177
177
To enable address sanitizer (advanced debugging of memory issues):
178
178
179
179
```bash
180
-
meson .build -Db_sanitize=address
180
+
meson setup .build -Db_sanitize=address
181
181
```
182
182
183
183
This option adds `-fsanitize=address` to the gcc options. Note that when using the sanitize feature, the library `libasan.so` must be available and must be the very first library loaded when running an executable. Ensuring that `libasan.so` gets loaded first can be achieved with the `LD_PRELOAD` environment variable as follows:
184
184
185
185
```
186
-
meson .build -Db_sanitize=address && LD_PRELOAD=/lib64/libasan.so.6 ninja -C .build test
186
+
meson setup .build -Db_sanitize=address && LD_PRELOAD=/lib64/libasan.so.6 ninja -C .build test
187
187
```
188
188
189
189
To list configuration options that are available and possible values:
0 commit comments