[openmp] [clang] [libc] [mlir] [libcxx] [compiler-rt] [lld] [lldb] [llvm] [clang-tools-extra] [flang] [Driver] Report invalid target triple versions for all environment types. (PR #78655)

via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 15:00:26 PST 2024


ZijunZhaoCCK wrote:

> This broke the wasi-threads target: `clang: error: version 'threads' in target triple 'wasm32-unknown-wasi-threads' is invalid`

Because `threads` is not in EnvironmentType list: https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/TargetParser/Triple.h#L231 or ObjectType list: https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/TargetParser/Triple.h#L284 . 

The format should be `arch-vendor-os-env`. If `threads` is a new environment type, please add it in the list. If `wasi-threads` is a special case, please let me know!

And one more question, would you mind pointing me out the test case of `wasm32-unknown-wasi-threads` ? I don't see it. Thank you!

https://github.com/llvm/llvm-project/pull/78655


More information about the cfe-commits mailing list