Skip to content

Commit 27d5ae8

Browse files
bonzinijpakkane
authored andcommitted
docs: update project(default_options: ...) for 1.8 changes
Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 5478113 commit 27d5ae8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/yaml/functions/project.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,19 @@ kwargs:
4545
For example to set the default project type you would
4646
set this: `default_options : ['buildtype=debugoptimized']`. Note
4747
that these settings are only used when running Meson for the first
48-
time. Global options such as `buildtype` can only be specified in
49-
the master project, settings in subprojects are ignored. Project
50-
specific options are used normally even in subprojects.
48+
time.
5149
5250
Note that some options can override the default behavior;
5351
for example, using `c_args` here means that the `CFLAGS`
5452
environment variable is not used. Consider using
5553
[[add_project_arguments()]] instead.
5654
55+
Also note that not all options are taken into account when
56+
building as a subproject, and the exact set of options
57+
that are per-subproject has increased over time; for more
58+
information, see [core options](Builtin-options.md#core-options)
59+
and [compiler options](Builtin-options.md#compiler-options).
60+
5761
*(since 1.2.0)*: A dictionary may now be passed.
5862
5963
version:

0 commit comments

Comments
 (0)