I build Swift Xcode 10 toolchain, add a new pass with option, but Xcode report such message when archive:
swift (LLVM option parsing): Unknown command line argument '-xxxxxxx-combines'. Try: 'swift (LLVM option parsing) -help'
swift (LLVM option parsing): Did you mean '-expensive-combines'?
But I add an new option within the already existed pass in llvm/lib/transforms, such as:
cl::desc("Enable expensive instruction combines"));
cl::desc("Enable hehehe combines"));
the upper option "expensive-combines" is already existed, the option "hehehe-combines" is my custom option. But when archiving, Xcode could recognize "-Xllvm -expensive-combines" but "-Xllvm -hehehe-combines".
I even modify option "expensive-combines" directly to another string "expensive-combines-xxx"，but Xcode still could not recognize "-Xllvm -expensive-combines-xxx".
I can use swiftc from my built toolchain to compile with custom -Xllvm option successfully, but it fails when choosing the toolchain from Xcode.
So I want to know if Xcode 10 restrict the -Xllvm option to some specifie ones, if not, how to archive with custom -Xllvm option within Xcode 10?