Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unity builds #12452

Merged
merged 2 commits into from
Nov 18, 2023
Merged

Fix unity builds #12452

merged 2 commits into from
Nov 18, 2023

Conversation

SoapGentoo
Copy link
Member

* edge case failure with unity builds:
  - static archive bar that gets installed, that links with another static
    archive foo that does not get installed
  - the number of files in static archive foo is divisible by unity_size

would yield an error with ninja:

  ninja: error: 'subprojects/foo/src/libfoo.a.p/meson-generated_foo-unity1.cpp.o', needed by 'src/libbar.a', missing and no known rule to make it
@xclaesse
Copy link
Member

@SoapGentoo please squash and LGTM

@jpakkane jpakkane merged commit 8928669 into mesonbuild:master Nov 18, 2023
36 checks passed
@SoapGentoo SoapGentoo deleted the fix-unity-builds branch November 26, 2023 00:20
gerioldman pushed a commit to gerioldman/meson that referenced this pull request Jul 2, 2024
* unity builds: correct integer ceiling division

* edge case failure with unity builds:
  - static archive bar that gets installed, that links with another static
    archive foo that does not get installed
  - the number of files in static archive foo is divisible by unity_size

would yield an error with ninja:

  ninja: error: 'subprojects/foo/src/libfoo.a.p/meson-generated_foo-unity1.cpp.o', needed by 'src/libbar.a', missing and no known rule to make it

* unity builds: test for build failure when #files is divisible by unity_size
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.

3 participants