Skip to content

Commit 89d8d24

Browse files
authored
[Docs] Suggest using release build type for Meson (#1122)
We do the same also for CMake
1 parent f611a3e commit 89d8d24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/build_tips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The toolchain file sets up several CMake environment variables for better cross-
6363
BinaryBuilder supports also building with Meson. Since this is going to be a cross-compilation, you have to specify a Meson cross file:
6464

6565
```sh
66-
meson --cross-file="${MESON_TARGET_TOOLCHAIN}"
66+
meson --cross-file="${MESON_TARGET_TOOLCHAIN}" --buildtype=release
6767
```
6868

6969
After configuring the project with `meson`, you can then build and install it with

src/wizard/hints.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function provide_hints(state::WizardState, path::AbstractString)
7878
print(state.outs, " This file is likely input to Meson. ")
7979
println(state.outs, "The recommended option for Meson is")
8080
println(state.outs)
81-
printstyled(state.outs, " meson --cross-file=\${MESON_TARGET_TOOLCHAIN}", bold=true)
81+
printstyled(state.outs, " meson --cross-file=\${MESON_TARGET_TOOLCHAIN} --buildtype=release", bold=true)
8282
println(state.outs)
8383
println(state.outs)
8484
println(state.outs, " followed by `ninja` and `ninja install`. Since the prefix variable")

0 commit comments

Comments
 (0)