Hello,
My project use gradle and cmake (the default option of Android Studio) to compile. I'm newbie on Cmake & gradle.
I want to pass --fix-cortex-a53-843419 to the linker step. So I have some question regarding how to pass the linker options to the config, and how to know the configs apply or don't
- For build.gradle, some arguments has description in here, so if I want to pass the fix cortex argument, seem no option for me to do it?
- Passing the option directly to CMakeLists.txt with CMAKE_SHARED_LINKER_FLAGS, It will effected all the architecture. And it will be error with armeabi-v7a, need to rewrite the CMakeLists.txt to avoid the issue? and the relate question in 4
- That is good with the compile_commands.json. However, it is very few of options. If need to check on the arguments has pass compile and link step, do we have another file?
- Regarding question 3, I search in folder a\.cxx\cmake\[Type]\[abi]CmakeFiles\3.10.2\*.*. Found the file with name CMakeOutput.log and some interesting line arg [--fix-cortex-a53-843419] ==> ignore . So do you know actually with 2, the option already pass and accept?
Note that android-ndk-r21d is used. Host Machine is Ubuntu 18.04 - 64bit. Gradle 5.5.1 & AGP 3.5.3
Many thanks for your time to read those question.
Seal