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

Fix file generation error on multiple CMake configurations reload #332

Merged

Conversation

fameowner99
Copy link
Contributor

Propose to move generated file to binary directory because it creates from different CMake configuration at the same time and it is race condition

The problems occures when you have multiple CMake configurations for example Release, Relwithdebinfo, Debug.
And when you reload CMake at same time every configuration try to modify file in same location maxminddb_config.h.
So easiest fix is to move generated file per configuration.

@fameowner99
Copy link
Contributor Author

Random errors look like this
image

@fameowner99 fameowner99 force-pushed the fix_multiple_configuration_file_write_error branch from 8cc5fbc to 0f7203a Compare November 27, 2023 20:25
@oschwald
Copy link
Member

It appears the cmake workflows are failing. That would need to be fixed before this could be merged.

Propose to move generated file to binary directory
because it creates from different CMake configuration at the same time
and it is race condition
@fameowner99 fameowner99 force-pushed the fix_multiple_configuration_file_write_error branch from 0f7203a to 25a3b3c Compare November 28, 2023 10:53
Copy link
Member

@oschwald oschwald left a comment

Choose a reason for hiding this comment

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

Makes sense. Thanks!

@oschwald oschwald merged commit 972da7d into maxmind:main Nov 28, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants