From bec30ccf2504d01f6957faeca55787e01f08e10e Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 3 Mar 2016 09:52:25 +0200 Subject: [PATCH] build: add order-only dependency between building antlr .o and IDL headers This ensures that if an antlr generated .cpp file depends on an IDL-generated .hh file, then that .hh is generated before the .o is built. --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 4afcd84b54..6079db7d5e 100755 --- a/configure.py +++ b/configure.py @@ -876,7 +876,7 @@ with open(buildfile, 'w') as f: grammar.source.rsplit('.', 1)[0])) for cc in grammar.sources('$builddir/{}/gen'.format(mode)): obj = cc.replace('.cpp', '.o') - f.write('build {}: cxx.{} {}\n'.format(obj, mode, cc)) + f.write('build {}: cxx.{} {} || {}\n'.format(obj, mode, cc, ' '.join(serializers))) f.write('build seastar/build/{mode}/libseastar.a seastar/build/{mode}/apps/iotune/iotune: ninja {seastar_deps}\n' .format(**locals())) f.write(' subdir = seastar\n')