Turned SIMD into an unstable module.

pull/1374/head
Jussi Pakkanen 8 years ago
parent ce77fb89b9
commit fc23d9d0f2
  1. 4
      mesonbuild/interpreter.py
  2. 0
      mesonbuild/modules/unstable_simd.py
  3. 2
      test cases/common/155 simd/meson.build

@ -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)

@ -1,6 +1,6 @@
project('simd', 'c')
simd = import('simd')
simd = import('unstable-simd')
cc = meson.get_compiler('c')

Loading…
Cancel
Save