Skip to content

Conversation

@trofi
Copy link

@trofi trofi commented Nov 27, 2022

Without the change there is no giarantee that facebook-marshal.h gets built before it's dependencies. On make-4.4 --shuffle is able to catch missing dependency as:

$ make --shuffle
  CC       facebook_la-facebook-mqtt.lo
facebook-mqtt.c:23:10: fatal error: facebook-marshal.h: No such file or directory
   23 | #include "facebook-marshal.h"
      |          ^~~~~~~~~~~~~~~~~~~~

Automake's BUILT_SOURCES builds all sources before first object file. The change pulls it there.

Before the change 1-2 builds triggered make --shuffle failure. After the change 20 sequential rebuilds succeeded without failures.

Without the change there is no giarantee that facebook-marshal.h
gets built before it's dependencies. On `make-4.4` `--shuffle` is
able to catch missing dependency as:

    $ make --shuffle
      CC       facebook_la-facebook-mqtt.lo
    facebook-mqtt.c:23:10: fatal error: facebook-marshal.h: No such file or directory
       23 | #include "facebook-marshal.h"
          |          ^~~~~~~~~~~~~~~~~~~~

Automake's BUILT_SOURCES builds all sources before first object file.
The change pulls it there.

Before the change 1-2 builds triggered `make --shuffle` failure.
After the change 20 sequential rebuilds succeeded without failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant