-
Notifications
You must be signed in to change notification settings - Fork 993
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
Cross compiling from macOS to Emscripten fails because of automatically added -stdlib=libc++ #7339
Comments
Hi @sascha ! Can you share with us the Emscripten recipe you are using? or how are you populating the environment before running Conan to compile your library? |
Hi @jgsogo, sure, happy to. I'm installing my Conan deps with
This is my
and this is my
The One of my dependencies is
The emscripten compiler frontend is basically a drop-in replacement for clang (https://emscripten.org/docs/tools_reference/emcc.html). Would it make sense to introduce a new |
Any update on this? I bumped into the same issue |
I've been playing with emscripten these days (I'm using the recipe under development here: conan-io/conan-center-index#6163). With the build-requires, I'm able to build I'm still working on several pull-requests for different packages, but so far it is working for them: conan-io/conan-center-index#6292. (All of this, using the latest Conan version) |
Environment Details
Problem description
I'm not quite sure if this is a bug, a missing feature or a configuration error, but the issue is somewhat related to issue #2856. Just like Android, the Emscripten compiler does not need
-stdlib=libc++
. I could probably get around this issue by specifyingcompiler.libcxx=c++_static
in the host profile in which case theconan_set_libcxx
macro in the generated CMake file would not add the-stdlib=libc++
flag, however this is only a valid option when setting the compiler toclang
. On the other hand I can't set the compiler toclang
, because the highest available version number is10
while the latest version number ofapple-clang
is11
. This mismatch will throw an error when installing packages, because Emscripten's toolchain file automatically sets the compiler version to that of the system clang.Ideally I'd need a way to remove the
compiler.libcxx
setting when the host os isEmscripten
. Is there a way to do this?The text was updated successfully, but these errors were encountered: