[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANNOUNCE: build system conversion to Meson has landed
From: |
Markus Armbruster |
Subject: |
Re: ANNOUNCE: build system conversion to Meson has landed |
Date: |
Mon, 24 Aug 2020 14:57:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Eric Blake <eblake@redhat.com> writes:
> On 8/21/20 8:49 AM, Peter Maydell wrote:
>> Hi; we've just merged Paolo's patchset that converts the build system
>> to use Meson. This should mostly be fairly seamless for the average
>> developer (we hope) but there are a few things to be aware of:
>>
>> * you probably want to do a distclean or otherwise do a clean build
>> when you first update your git tree to a version of master with Meson
>> (especially if you do in-tree builds)
>> * out-of-tree builds should continue to work basically normally
>> * we have retained compatibility for an "in-tree build" workflow where
>> you run configure/make in the source tree, but this is now implemented
>> by having configure create a build tree for you under-the-hood
>> (but do consider switching to just doing out-of-tree builds)
>
> If you do an in-tree build, do the 'make distclean' _before_ a 'git
> pull' of the new code. If you don't clean first, the pull attempt is
> likely to complain about various trace.h files, so that is a good
> reminder. And if you manage to pull anyway, you may need to rewind
> your tree back to v5.1.0 before attempting the in-tree 'make
> distclean', then re-try the pull.
In case you read Eric's advice too late:
$ (cd your-build-dir && mv -f config.status .config.status && rm -r * && mv
.config.status config.status && ./config.status)
It's how I've been blowing away build trees at the slightest sign of
trouble. Caveat emptor, YMMV, etc. etc.