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

Add mbig-obj flag to allow cross-compiling libexpr to mingw32 #12387

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

puffnfresh
Copy link
Member

Motivation

primops is huge, GCC for mingw32 needs a flag.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@puffnfresh puffnfresh requested a review from edolstra as a code owner January 31, 2025 11:54
# libexpr's primops creates a large object
# Without the following flag, we'll get errors when cross-compiling to mingw32:
# Fatal error: can't write 66 bytes to section .text of src/libexpr/libnixexpr.dll.p/primops.cc.obj: 'file too big'
add_project_arguments([ '-Wa,-mbig-obj' ], language: 'cpp')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine this should be conditional on mingw32?

@Mic92
Copy link
Member

Mic92 commented Feb 2, 2025

@mergify queue

Copy link
Contributor

mergify bot commented Feb 2, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at d5c00cf

mergify bot added a commit that referenced this pull request Feb 2, 2025
@mergify mergify bot merged commit d5c00cf into NixOS:master Feb 2, 2025
13 checks passed
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