amimo/goron

不能编译Bitcode的bc文件

Closed this issue · 8 comments

使用Hikari
clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs -fobjc-arc -c DomainManager.bc -o DomainManagerOb.o

warning: overriding the module target triple with arm64-apple-ios5.0.0 [-Woverride-module] std::mt19937_64 seeded with current timestamp: 1571280669417
Doing Post-Run Cleanup
Hikari Out

1 warning generated.

使用goron
clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs -fobjc-arc -c DomainManager.bc -o DomainManagerOb.o

error: Invalid record
1 error generated.

没有使用任何Pass,开启了也是一样的结果

amimo commented

这个bc是用goron生成的吗?我猜测可能是bc不兼容.

@amimo 是用Xcode自带的编译器生成的,Hikari编译没问题, goron不行

amimo commented

clang --version 看看,可能是版本不一样.goron现在是7.1.0,还没有适配高版本

Hikari -> clang version 8.0.0
Apple clang version 11.0.0

amimo commented

等我适配好8之后你再试试吧

@amimo 好~

amimo commented

@HuaZao 你试试llvm-8.0.1分支

@amimo 非常感谢! llvm-8.0.1分支 测试正常