Skip to content

Commit 7d28ff2

Browse files
committed
docs: fix description of cpp_eh=none
We changed the behavior in mesonbuild#6116 but did not change the docs as well. Fixes mesonbuild#8233
1 parent f24307e commit 7d28ff2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/markdown/Builtin-options.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,11 @@ All these `<lang>_*` options are specified per machine. See below in
280280
the [specifying options per machine](#specifying-options-per-machine)
281281
section on how to do this in cross builds.
282282

283-
When using MSVC, `cpp_eh=none` will result in no exception flags being
284-
passed, while the `cpp_eh=[value]` will result in `/EH[value]`. Since
285-
*0.51.0* `cpp_eh=default` will result in `/EHsc` on MSVC. When using
286-
gcc-style compilers, nothing is passed (allowing exceptions to work),
287-
while `cpp_eh=none` passes `-fno-exceptions`.
283+
When using MSVC, `cpp_eh=[value]` will result in `/EH[value]` being passed.
284+
The magic value `none` translates to `s-c-` to disable exceptions. *Since
285+
0.51.0* `default` translates to `sc`. When using gcc-style compilers, nothing
286+
is passed (allowing exceptions to work), while `cpp_eh=none` passes
287+
`-fno-exceptions`.
288288

289289
Since *0.54.0* The `<lang>_thread_count` option can be used to control
290290
the value passed to `-s PTHREAD_POOL_SIZE` when using emcc. No other

0 commit comments

Comments
 (0)