aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoaLitiuM <goalitium@kapsi.fi>2018-08-18 14:30:53 +0300
committerGoaLitiuM <goalitium@kapsi.fi>2018-08-20 22:27:31 +0300
commitb208cbda8163513787f669743f2c8877a330aaf1 (patch)
treed2b24efcccdbb4ace8067884db2aad821aef02e6
parent96bac154bf41f6325bf348097bf861e0f197597a (diff)
downloadmeson-b208cbda8163513787f669743f2c8877a330aaf1.zip
meson-b208cbda8163513787f669743f2c8877a330aaf1.tar.gz
meson-b208cbda8163513787f669743f2c8877a330aaf1.tar.bz2
Remove optimization related arguments from buildtype args, inline release builds
Dub enables inlining by default for release builds, so meson should do it as well.
-rw-r--r--mesonbuild/compilers/compilers.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index b8ae399..9acb93c 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -196,22 +196,22 @@ rust_buildtype_args = {'plain': [],
d_gdc_buildtype_args = {'plain': [],
'debug': [],
- 'debugoptimized': ['-O'],
- 'release': ['-O3', '-frelease'],
+ 'debugoptimized': ['-finline-functions'],
+ 'release': ['-frelease', '-finline-functions'],
'minsize': [],
}
d_ldc_buildtype_args = {'plain': [],
'debug': [],
- 'debugoptimized': ['-O'],
- 'release': ['-O3', '-release'],
+ 'debugoptimized': ['-enable-inlining', '-Hkeep-all-bodies'],
+ 'release': ['-release', '-enable-inlining', '-Hkeep-all-bodies'],
'minsize': [],
}
d_dmd_buildtype_args = {'plain': [],
'debug': [],
- 'debugoptimized': ['-O'],
- 'release': ['-O', '-release'],
+ 'debugoptimized': ['-inline'],
+ 'release': ['-release', '-inline'],
'minsize': [],
}