OLLVM-9.0.1 icon indicating copy to clipboard operation
OLLVM-9.0.1 copied to clipboard

集成到ndk中,编译卡死的问题

Open floydScript opened this issue 2 years ago • 1 comments

环境: Ubuntu 18.04.6 LTS cmake : 3.10.2 ndk : 21.1.6352462 ollvm : obfuscator base on llvm-9.0.1 (https://github.com/heroims/obfuscator 2dec365146e909f6ca45df7c23603d489f0816dd)

编译完ollvm,照你的方法替换文件后,使用Android Studio编译我的项目,一直卡在 buildCMakeRelWithDebInfo,几十分钟都过不去。

我在项目中试过单独给函数加混淆和全部混淆都会卡死在 buildCMakeRelWithDebInfo ,不知道原因

# 单独给函数加标签
__attribute__((annotate(("sub"))))

# 全部混淆
externalNativeBuild {
    cmake {
        cppFlags "-std=c++11 -mllvm -sub -mllvm -bcf -mllvm -fla -mllvm -sobf -mllvm -seed=0x11223344556677889900aabbccddeeff"
    }
}

有跟我一样情况的吗?

floydScript avatar Apr 23 '22 03:04 floydScript

全部混淆那边指定一下混淆强度 尽量调低试试 可能就是打包几个小时(as好像是单线程编译的) 具体因为什么我也不清楚 不行试试这位大佬的 https://github.com/bluesadi/Pluto-Obfuscator

o2e avatar Apr 23 '22 04:04 o2e