std_meson_args: add release buildtype

By default meson compiles using the debug buildtype, which corresponds
to -O0 -g. The release buildtype changes this to -O3.
This commit is contained in:
Tom Schoonjans 2020-07-14 11:27:49 +01:00
parent 4a20f76382
commit 678dbc1973

View File

@ -1420,7 +1420,7 @@ class Formula
# Standard parameters for meson builds.
def std_meson_args
["--prefix=#{prefix}", "--libdir=#{lib}"]
["--prefix=#{prefix}", "--libdir=#{lib}", "--buildtype=release"]
end
def shared_library(name, version = nil)