diff options
-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') |