-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Make building for clang/libc++ simpler #531
Comments
I think this is rather something that should be documented on the libc++ side, as I bet this affects all c++ projects essentially. |
I don't know, this SDK has a long list of compatible environments. I don't
see a problem with giving build suggestions for various platforms and
targets. I already found that the default instructions don't work on
windows (see PR #528). Pre-requisited libs also _probably_ should be
listed.
I'll be happy to make a PR with suggested Linux additions.
fim., 29. apr. 2021 kl. 10:26 skrifaði Arpad Borsos <
***@***.***>:
… I think this is rather something that should be documented on the libc++
side, as I bet this affects all c++ projects essentially.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#531 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABN3FR2BXRRNJGDU27XUCXDTLEX5PANCNFSM43XMKIZQ>
.
|
The easiest way to address your problem would be to use cmake toolchain files. e.g. create a file names
and build the project with:
No changes need to be done to sentry-native's cmake scripts. |
github-project-automation
bot
moved this to Needs Discussion
in Mobile & Cross Platform SDK
Jun 19, 2023
github-project-automation
bot
moved this from Needs Discussion
to Done
in Mobile & Cross Platform SDK
Sep 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I need to compile on Linux to link with a project that uses clang and libc++ (rather than gcc and libstdc++)
It took me a few hours of googling and trial and error to figure out the solution.
Either it could be documented or made simpler via cmake config
When does the problem happen
Environment
Ubuntu 18, with cmake 3.30
Steps To Reproduce
To successfully compile sentry-native, the following needs to be done:
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++"
The text was updated successfully, but these errors were encountered: