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 mac build #691

Closed
wants to merge 2 commits into from
Closed

Fix mac build #691

wants to merge 2 commits into from

Conversation

justhecuke
Copy link

There were more mac-specific build breakages that needed to be fixed.

One was a relatively simple need to explicitly include <unordered_map> due to mac being weird.

The other was a breakage in gtest which does not compile in macos due to an inability in cmake to properly set C++17. The fix was to explicitly add CXXFLAGS="-std=gnu++17" to force proper compilation, although it may not be a clean fix since the comments indicate that the maintainers wanted to keep CXXFLAGS empty.

justin.wei added 2 commits April 8, 2022 18:14
For some reason, building on a mac leads to std::unsorted_map
not being found unless you include <unordered_map>.
GoogleTest has a build issue on macos where it does not properly
set C++ to the 17 standard and so has compilation failures.

The fix is to explicitly tell the gtest compilation to use
"--std=gnu++17" although this may not be the best fix possible.
@facebook-github-bot
Copy link
Contributor

@NTillmann has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@justhecuke justhecuke deleted the fix-mac-build branch November 17, 2022 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants