-
Notifications
You must be signed in to change notification settings - Fork 258
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
No merge between the CMake flags and the default flags #219
Comments
I observed the same result when using the Gradle cppFlags flags. |
I'm a newbies c++ dev. And I first observed this error on a compilation error. Android Studio printed the flags. |
What's the problem here? The early Note that pretty soon we're just going to drop the default of rtti and exceptions being off for cmake. #212. |
Like I've said before I'm not an experienced C++ dev. An it looks strange to me to have a flag and this opposite. If you remove th default it will be clearer. Furthermore, you assure me that in our case the latest flag win, you can close the issue. Thanks. |
Yes, the last flag wins when it comes to |
Studio Build: #AI-145.3276617
NDK: 13.0.3315539
Version of Gradle Plugin: 2.2.0
Version of Gradle: 2.14.1
Version of Java: 1.8.0_76
OS: Mac OS 10.12
Steps to Reproduce:
cat /Users/nicolasguillot/Documents/projets/android-cmake/core/lib/android/.externalNativeBuild/cmake/debug/x86/android_gradle_build.json
Expected result:
The flags element is build according to the CMake value.
Result
the flags element contains -fno-rtti -std=c++11 --std=c++11 -frtti
I added the last two in the root CMake. By default it seems that we have the -fno-rtti flag which does not take into account the CMake flag -frtti.
The text was updated successfully, but these errors were encountered: