Hi,

As the subject indicates, this message is about two completely unrelated
small things that landed recently. I didn't feel like writing two
different messages.

Steve Find wrote a perl script[1] a while ago[2] to help recursively update
uuids in interfaces and their decendents.

  1. http://people.mozilla.org/~sfink/uploads/update-uuids
  2. https://blog.mozilla.org/sfink/2011/03/02/updating-uuids/

This has recently been integrated in mach (bug 893976). You can now run:
  mach update-uuids nsIDOMNode

which will update nsIDOMNode's uuid as well as the uuid of the 35
classes that derive directly or indirectly from it.

It also takes a --path argument to limit the changes to a specific
directory.

Feel free to improve that mach command. Since it uses the python idl
parser, there is plenty of room for smart decisions (the ultimate tool
would take the two ends of a patch, compare the interfaces and update
the uuids of the changed interfaces).

Secondly, the build system recently grew a new build-time option to help
determine why something is being recompiled (bug 903385). I'm sure some
have tried to used make -d for that, and noticed that on top of being
heavily verbose, it also breaks the build in some places. You can now a
build with REBUILD_CHECK=1, and when compiled objects, libraries or
programs are rebuilt, the build system will tell you why, which is
helpful to e.g. find out why you're rebuilding all of js and webrtc
while you changed nothing there (which, by the way, is now almost fixed,
see bugs 903321, 903341 and 903369).

Please note this does only work for objects, libraries and programs
compiled for js and gecko, not for chrome files, headers, or for nspr,
nss and some other third-party code.

You can set REBUILD_CHECK=1 this way:
  - with mach: REBUILD_CHECK=1 mach build
  - with client.mk: make -f client.mk REBUILD_CHECK=1

Also note this currently fails under some circumstances, displaying (and
ignoring) an exception on mac and linux, but breaking the build on
Windows (bug 904329, patch in the bug).

Cheers,

Mike
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to