aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-10-08 15:40:15 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-11-15 18:34:12 -0800
commit484fca9866f6b477a2ca30bb75be8a15de598e66 (patch)
tree7edd22655700d3279b9b4000d07de5ebf6ae770e /mesonbuild/compilers
parent0427ba48e6e22be20f4c9cca526d4098f0af38ea (diff)
downloadmeson-484fca9866f6b477a2ca30bb75be8a15de598e66.zip
meson-484fca9866f6b477a2ca30bb75be8a15de598e66.tar.gz
meson-484fca9866f6b477a2ca30bb75be8a15de598e66.tar.bz2
compilers: Fix the set of features that ICC exposes
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/compilers.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 85a8480..ca8c09c 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1731,10 +1731,17 @@ class ArmclangCompiler:
return ['--symdefs=' + implibname]
-# Tested on linux for ICC 14.0.3, 15.0.6, 16.0.4, 17.0.1
+# Tested on linux for ICC 14.0.3, 15.0.6, 16.0.4, 17.0.1, 19.0.0
class IntelCompiler(GnuLikeCompiler):
def __init__(self, compiler_type):
super().__init__(compiler_type)
+ # As of 19.0.0 ICC doesn't have sanitizer, color, or lto support.
+ #
+ # It does have IPO, which serves much the same purpose as LOT, but
+ # there is an unfortunate rule for using IPO (you can't control the
+ # name of the output file) which break assumptions meson makes
+ self.base_options = ['b_pch', 'b_lundef', 'b_asneeded', 'b_pgo',
+ 'b_coverage', 'b_ndebug', 'b_staticpic', 'b_pie']
self.id = 'intel'
self.lang_header = 'none'