-
Notifications
You must be signed in to change notification settings - Fork 17
Quickfix to make it work with g++-15 on OSX #204
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
Conversation
| // FIXME: does not compile with g++-15 on OSX! CK | ||
| #if defined(__APPLE__) && defined(__GNUC__) | ||
| #undef BEMAN_HAS_IMPORT_STD | ||
| #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dietmarkuehl Note this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. This is a limitation we can hopefully fix in the future.
| // FIXME: does not compile with g++-15 on OSX! CK | ||
| #if defined(__APPLE__) && defined(__GNUC__) | ||
| #undef BEMAN_HAS_IMPORT_STD | ||
| #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. This is a limitation we can hopefully fix in the future.
| # XXX export CMAKE_CXX_STDLIB_MODULES_JSON=${GCC_DIR}/lib/gcc/current/libstdc++.modules.json | ||
| export CXX=g++-15 | ||
| export CXXFLAGS=-stdlib=libstdc++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to find an arrangement for these: I don't have g++ on my OSX systems because they are ARM based. I believe these two lines set the compiler and flags in a way which I also can't override, e.g., using environment variables.
|
There seem to be some CI failures for |
clang++ and libstd++!GenerateExportHeader.cmakeIn file included from /usr/share/libc++/v1/std.cppm:229:
/usr/share/libc++/v1/std/cstdio.inc:24:14: error: using declaration referring to 'fprintf' with internal linkage cannot be exported