Skip to content

Fixes to cfg .mk files for Windows #21065

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

Merged
merged 1 commit into from
Jan 21, 2015
Merged

Fixes to cfg .mk files for Windows #21065

merged 1 commit into from
Jan 21, 2015

Conversation

ColonelJ
Copy link
Contributor

Removed use of unused LDPATH variable on Windows as is done for other platforms, and added GCC flag to ensure MINGW's ANSI compatible STDIO functions are used wherever available (required by jemalloc).

Without these changes it ends up setting the PATH twice, and the second time the PATH begins with : which is invalid. Also the regular msvcrt printf-like functions would be used which don't understand stuff like %hhd and %z which jemalloc uses.

This change ought not to make any difference to the output but it fixes the build process for me since at least my build environment couldn't handle that broken path caused by LDPATH being empty.

…able on Windows as is done for other platforms, and added GCC flag to ensure MINGW's ANSI compatible STDIO functions are used wherever available (required by jemalloc).
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

bors added a commit that referenced this pull request Jan 14, 2015
Removed use of unused LDPATH variable on Windows as is done for other platforms, and added GCC flag to ensure MINGW's ANSI compatible STDIO functions are used wherever available (required by jemalloc).

Without these changes it ends up setting the PATH twice, and the second time the PATH begins with `:` which is invalid.  Also the regular msvcrt printf-like functions would be used which don't understand stuff like %hhd and %z which jemalloc uses.

This change ought not to make any difference to the output but it fixes the build process for me since at least my build environment couldn't handle that broken path caused by LDPATH being empty.
@nikomatsakis nikomatsakis assigned brson and unassigned nikomatsakis Jan 15, 2015
@nikomatsakis
Copy link
Contributor

re-assigning to brson since he gave the r+

@ColonelJ
Copy link
Contributor Author

As far as I can tell one of the linux tests failed for some reason that has nothing to do with my changes and it's completely ruined any chance of seeing if my changes actually caused any problems because 'no point in continuing' ...

Unless there's any evidence to the contrary or that this change is bad (I can't see any) I suggest ignoring that run-pass/unfold-cross-crate.rs failure on linux and let it run through the test system again. Thanks...

@brson
Copy link
Contributor

brson commented Jan 20, 2015

@bors: r+ f071f3b
@bors: retry f071f3b

@brson
Copy link
Contributor

brson commented Jan 20, 2015

Looks like this might need a rebase.

bors added a commit that referenced this pull request Jan 21, 2015
Removed use of unused LDPATH variable on Windows as is done for other platforms, and added GCC flag to ensure MINGW's ANSI compatible STDIO functions are used wherever available (required by jemalloc).

Without these changes it ends up setting the PATH twice, and the second time the PATH begins with `:` which is invalid.  Also the regular msvcrt printf-like functions would be used which don't understand stuff like %hhd and %z which jemalloc uses.

This change ought not to make any difference to the output but it fixes the build process for me since at least my build environment couldn't handle that broken path caused by LDPATH being empty.
@bors
Copy link
Collaborator

bors commented Jan 21, 2015

⌛ Testing commit f071f3b with merge 710dcdc...

@bors
Copy link
Collaborator

bors commented Jan 21, 2015

@bors bors merged commit f071f3b into rust-lang:master Jan 21, 2015
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.

6 participants