When building a static library for iOS, -fembed-bitcode flag needs to be passed to clang to embed the generated bitcode in the .a file. Most projects nowadays have bitcode enabled. I could not find a way to enable that flag in Zig build system - it seems that this is not supported. Passing -fembed-bitcode explicitly in addCSourceFile will cause clang to complain about -mno-red-zone, see https://reviews.llvm.org/D61627
When building a static library for iOS,
-fembed-bitcode
flag needs to be passed to clang to embed the generated bitcode in the.a
file. Most projects nowadays have bitcode enabled. I could not find a way to enable that flag in Zig build system - it seems that this is not supported. Passing-fembed-bitcode
explicitly inaddCSourceFile
will cause clang to complain about-mno-red-zone
, see https://reviews.llvm.org/D61627