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 /mesonbuild/interpreter.py | |
parent | ce77fb89b991ef0537d72538ae0933b13fe09824 (diff) | |
download | meson-fc23d9d0f207a5e7d68128db9741db1f7c4ba190.zip meson-fc23d9d0f207a5e7d68128db9741db1f7c4ba190.tar.gz meson-fc23d9d0f207a5e7d68128db9741db1f7c4ba190.tar.bz2 |
Turned SIMD into an unstable module.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 4 |
1 files changed, 4 insertions, 0 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) |