diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-18 21:53:24 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-18 21:53:24 +0300 |
commit | fc23d9d0f207a5e7d68128db9741db1f7c4ba190 (patch) | |
tree | 9c03341921354a57bfa7c72a70be35f9882a3d43 | |
parent | ce77fb89b991ef0537d72538ae0933b13fe09824 (diff) | |
download | meson-fc23d9d0f207a5e7d68128db9741db1f7c4ba190.zip meson-fc23d9d0f207a5e7d68128db9741db1f7c4ba190.tar.gz meson-fc23d9d0f207a5e7d68128db9741db1f7c4ba190.tar.bz2 |
Turned SIMD into an unstable module.
-rw-r--r-- | mesonbuild/interpreter.py | 4 | ||||
-rw-r--r-- | mesonbuild/modules/unstable_simd.py (renamed from mesonbuild/modules/simd.py) | 0 | ||||
-rw-r--r-- | test cases/common/155 simd/meson.build | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 43ddd72..359dd17 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1490,6 +1490,10 @@ class Interpreter(InterpreterBase): if len(args) != 1: raise InvalidCode('Import takes one argument.') modname = args[0] + if modname.startswith('unstable-'): + plainname = modname.split('-', 1)[1] + mlog.warning('Module %s has no backwards or forwards compatibility and might not exist in future releases.' % modname) + modname = 'unstable_' + plainname if modname not in self.environment.coredata.modules: try: module = importlib.import_module('mesonbuild.modules.' + modname) diff --git a/mesonbuild/modules/simd.py b/mesonbuild/modules/unstable_simd.py index 12d9839..12d9839 100644 --- a/mesonbuild/modules/simd.py +++ b/mesonbuild/modules/unstable_simd.py diff --git a/test cases/common/155 simd/meson.build b/test cases/common/155 simd/meson.build index d84b722..9da1651 100644 --- a/test cases/common/155 simd/meson.build +++ b/test cases/common/155 simd/meson.build @@ -1,6 +1,6 @@ project('simd', 'c') -simd = import('simd') +simd = import('unstable-simd') cc = meson.get_compiler('c') |