-
Notifications
You must be signed in to change notification settings - Fork 9
Compilation error with target x86_64-apple-ios #40
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
Comments
Looks like bug in https://github.com/alexcrichton/cc-rs , I will try to reproduce. |
I can not reproduce.
|
Am experiencing this on the M1 simulator:
Thanks @CedricCouton for the fix. |
This is cmake-rs issue: rust-lang/cmake-rs#96 . And now you can build couchbase-lite-core manually and use |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I encountered some errors during compilation when I compile with the target x86_64-apple-ios (it's ok with aarch64-apple-ios)
An exemple of error :
cargo:warning=couchbase-lite-core/vendor/fleece/API/fleece/FLSlice.h:18:19: note: expanded from macro 'FLAPI' cargo:warning= #define FLAPI noexcept cargo:warning= ^ cargo:warning=couchbase-lite-core/vendor/fleece/API/fleece/FLSlice.h:107:41: error: expected function body after function declarator cargo:warning=FLSliceResult FLSliceResult_New(size_t) FLAPI; cargo:warning=
After some research I found that noexcept is compilable with c++11 flag, so my is solution :
In build.rs (lig 116) I force the flag with .flag("-std=c++11") instead of flag_if_supported("-std=c++11")
But I don't understand why my compilation it is ok now. If the flag_if_supported don't add the flag because it is not supported (this is what the code do), if I force it with .flag and the compilation is ok, this indicates that it is supported, isn't it ?
Thanks
The text was updated successfully, but these errors were encountered: