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

libmsgpack: fixed mingw32 cross-build #18275

Merged
merged 1 commit into from Mar 18, 2017
Merged

libmsgpack: fixed mingw32 cross-build #18275

merged 1 commit into from Mar 18, 2017

Conversation

taktoa
Copy link
Member

@taktoa taktoa commented Sep 3, 2016

Motivation for this change

cmake, as usual, should be in nativeBuildInputs and we need to add a few cmake flags for mingw32 build to succeed. The cross-build was tested for all three versions of libmsgpack in nixpkgs (and the non-cross-build should be unaffected by these changes).

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

`cmake`, as usual, should be in `nativeBuildInputs` and we need to add a few cmake flags for mingw32 build to succeed.
@mention-bot
Copy link

@taktoa, thanks for your PR! By analyzing the annotation information on this pull request, we identified @wkennington to be a potential reviewer

buildInputs = [ cmake ];
nativeBuildInputs = [ cmake ];

crossAttrs = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the idea here is to make it easier to add more later? I think it's cleaner to not leave hooks for future extensions.

@joachifm
Copy link
Contributor

joachifm commented Sep 6, 2016

LGTM, but I've added a couple minor notes for you to consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: enhancement 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants