Skip to content

facebook/Makefile.am: add generated files to BUILT_SOURCES#217

Open
trofi wants to merge 1 commit intobitlbee:masterfrom
trofi:fix-make-shuffle
Open

facebook/Makefile.am: add generated files to BUILT_SOURCES#217
trofi wants to merge 1 commit intobitlbee:masterfrom
trofi:fix-make-shuffle

Conversation

@trofi
Copy link
Copy Markdown

@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