[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 15:14:58 PST 2025


JonPsson1 wrote:

> -DLLVM_RUNTIME_TARGETS

Thanks.  If I use cmake with -DLLVM_RUNTIME_TARGETS=systemz, and then rebuild, I see one more file being built:

```
ninja
[6/6] Linking CXX shared library lib/clang/20/lib/s390x-unknown-linux-gnu/libclang_rt.asan.so

```
However it does not seem to be quite the file that I need to run my program:

```
./bin/clang -target s390x-linux-gnu -march=z16 ./test4.c -O3 -o ./a.out --rtlib=compiler-rt
/usr/bin/ld: cannot find /home/ijonpan/llvm-project/build/lib/clang/20/lib/s390x-unknown-linux-gnu/libclang_rt.builtins.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
Even so, I don't understand why this wouldn't follow if I enable compiler-rt as a project...

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


More information about the llvm-commits mailing list