diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-04-03 17:53:26 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-04-03 19:31:09 +0530 |
commit | 9e0851a48999df99649f805fdfc20c43d5f633d7 (patch) | |
tree | 16779977b22ea9755808ab6d8ad996efcf93a409 /config/ios.config | |
parent | a6826cfd04bace977cd21479486989f747ca7da3 (diff) |
cerbero: Add a new variant for optimization
Now you can pass `-v debug,nooptimization` and it will be the same as
passing `-Dbuildtype=debug` or `-Doptimization=0 -Ddebug=true` to
Meson. Same also applies to non-Meson recipes: `-O2`/`-Os` will be
passed if `optimization` is enabled. If not, `-Og` is passed if
`debug` is enabled, else `-O0` is passed.
This requires revamping how optimization and debug args are added to
compiler flags via env vars. Earlier we used to add them in the
platform-specific config, but this was duplicated across all configs
and was incorrect for Meson recipes.
Note that Meson recipes should not be using `get_option('buildtype')`
in the build files to check if debugging is enabled because that will
return `custom` for most combinations of `optimization` and `debug.
See: https://mesonbuild.com/Builtin-options.html#core-options
Diffstat (limited to 'config/ios.config')
-rw-r--r-- | config/ios.config | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/ios.config b/config/ios.config index f5eb4595..dd212b23 100644 --- a/config/ios.config +++ b/config/ios.config @@ -69,8 +69,8 @@ else: sysroot = version_array_to_sdk_location(best_version) ccache = use_ccache and 'ccache ' or '' -extra_cflags='-Wall -g -Os' -extra_ldflags='-Wno-error=unused-command-line-argument' +extra_cflags = '' +extra_ldflags = '-Wno-error=unused-command-line-argument' if target_arch == Architecture.ARM64: arch_cflags = ' -arch arm64 -pipe' host = 'aarch64-apple-darwin10' |