diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-04-16 20:51:31 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-04-16 20:51:31 +0300 |
| commit | b626d017a2ceac9066bca0368be492ec7e4590d9 (patch) | |
| tree | 1b3cfbfdba315415818044baf203eb1e31c97057 /backends.py | |
| parent | ac2d7e3440156805003b0a059d20384294a4972e (diff) | |
| download | meson-b626d017a2ceac9066bca0368be492ec7e4590d9.tar.gz | |
Specify build flags per build type.
Diffstat (limited to 'backends.py')
| -rw-r--r-- | backends.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backends.py b/backends.py index 81062f988..e7b6a9cc2 100644 --- a/backends.py +++ b/backends.py @@ -306,8 +306,7 @@ class Backend(): if self.environment.coredata.buildtype != 'plain': commands += compiler.get_debug_flags() commands += compiler.get_std_warn_flags() - if self.environment.coredata.buildtype == 'optimized': - commands += compiler.get_std_opt_flags() + commands += compiler.get_buildtype_flags(self.environment.coredata.buildtype) if self.environment.coredata.coverage: commands += compiler.get_coverage_flags() if isinstance(target, build.SharedLibrary): |
