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 tests for xcode id generator #1193

Merged
merged 1 commit into from
Nov 13, 2018
Merged

Conversation

ratzlaff
Copy link
Contributor

the 'long' type is not always of size four bytes - which is what the current code assumes. Changed to uint32_t and added tests for the xcode id-generator.

Copy link
Member

@samsinsane samsinsane left a comment

Choose a reason for hiding this comment

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

Great catch! Just for my own curiosity, how did you encounter this? I assume you generated the xcode project on a non-macOS system?

@samsinsane samsinsane merged commit a7c9952 into premake:master Nov 13, 2018
@ratzlaff
Copy link
Contributor Author

Yeah, I have been making local tests here for some of the custom modifications we have made to premake (nothing major, most of which ends up as pull requests). Had to figure out why the windows executable would create an xcode project differently than when we ran the same scripts on the macs. Eventually nailed it down to the size differences of 'long' between the 32 and 64-bit versions of the executable.

So right now I believe we are able to generate the exact same output from all the major platforms.

@ratzlaff ratzlaff deleted the xcode_id_test branch November 18, 2018 01:42
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