Skip to content

Move system header includes above valgrind.h include #16323

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

Closed
wants to merge 1 commit into from

Conversation

c-nixon
Copy link
Contributor

@c-nixon c-nixon commented Aug 7, 2014

This allows rustc to be built with msys2's mingw64

Fixes #16347.

@brson
Copy link
Contributor

brson commented Aug 7, 2014

rust_builtins.c is the only file that includes the valgrind.h. Can we put this workaround there to avoid modifying the upstream valgrind code?

@brson
Copy link
Contributor

brson commented Aug 7, 2014

(With a comment about why)

This allows rustc to be build under msys2's mingw64 gcc
@c-nixon c-nixon changed the title Add #include stdint.h to src/rt/valgrind/valgrind.h Move system header includes above valgrind.h include Aug 8, 2014
@c-nixon
Copy link
Contributor Author

c-nixon commented Aug 8, 2014

Updated to a reordering of the include statements in rust-builtin.c instead of changing valgrind.h

bors added a commit that referenced this pull request Aug 9, 2014
This allows rustc to be built with msys2's mingw64

Fixes #16347.
@bors bors closed this Aug 9, 2014
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.

Building the compiler on 64-bit Windows fails in rust_builtin.c / valgrind.h (uintptr_t not defined)
4 participants