Fix build error in D145883. Thanks @awarzynski!
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks! Would replacing llvm-readelf -h with llvm-objdump -f also work? I'd rather avoid new dependencies if possible.
Comment Actions
I tried, but it didn't print information about Flags.
$ bin/flang-new --target=riscv64-unknown-linux-gnu -c hello.f90 ; bin/llvm-objdump -f hello.o hello.o: file format elf64-littleriscv architecture: riscv64 start address: 0x0000000000000000
Comment Actions
The standalone build didn't like this, https://github.com/llvm/llvm-project/commit/0b958fe41182c9040499e629e24cbdd250d73bf7 fixes that.
Comment Actions
I still see error in the pre commit CI -> https://buildkite.com/llvm-project/premerge-checks/builds/141680#0186ef93-ff26-4149-bb7d-10163ef64ec5
Comment Actions
Likely the symlink isn't present, somehow. I did worry that this might happen.
I will change the tests to use readobj instead, for want of a proper cmake fix to copy the symlink over.
Comment Actions
You need to modify the CHECK in code-gen-rv64.f90. I‘ve already commented in https://reviews.llvm.org/rG9f93b71f20ea