Skip to content

Conversation

@fornwall
Copy link
Contributor

Using check_c_source_runs() causes the build to fail when cross compiling. In that case we cannot check for printf "%zu" size_t formating support by executing a binary - instead assume it.

This should be safe as AFAIK only MS Visual Studio versions prior to VS2013 doesn't support it, and it's unlikely that someone should be using an old Visual Studio to cross compile librsync.

When cross compiling we cannot check for printf "%zu" size_t formating
support - instead assume it.
@dbaarda
Copy link
Member

dbaarda commented Feb 4, 2018

I'm not sure if there is a better way to do this than just assume it works for cross-compiling, but I'll accept it as better than what we currently have.

@dbaarda dbaarda merged commit 3eb640f into librsync:master Feb 4, 2018
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.

2 participants