Fix subproject again.

pull/100/head
Jussi Pakkanen 10 years ago
parent 4952d2628e
commit dfee5e5200
  1. 1
      interpreter.py
  2. 3
      test cases/common/80 shared subproject 2/meson.build

@ -1032,6 +1032,7 @@ class Interpreter():
self.global_args_frozen = True
mlog.log('\nExecuting subproject ', mlog.bold(dirname), '.\n', sep='')
subi = Interpreter(self.build, dirname, subdir)
subi.subprojects = self.subprojects
subi.subproject_stack = self.subproject_stack + [dirname]
subi.run()

@ -1,5 +1,8 @@
project('A', 'c')
# Same as the previous test but use C and B in
# the opposite order.
C = subproject('C')
c = C.get_variable('c')

Loading…
Cancel
Save