We have been cross-compiling LLVM using riscv64-unknown-linux-gnu-gcc and we found that this function has to be implemented for a successful build.
Details
- Reviewers
asb lenary luismarques lebedev.ri - Commits
- rGd4bdcb45a7d6: Merging r366868: --------------------------------------------------------------…
rL367813: Merging r366868:
rG9d9021d8d6d7: Merging r366868: --------------------------------------------------------------…
rL367810: Merging r366868:
rCXX366868: [RISCV] Implement benchmark::cycleclock::Now
rG09e6304440c0: [RISCV] Implement benchmark::cycleclock::Now
rL366868: [RISCV] Implement benchmark::cycleclock::Now
Diff Detail
- Repository
- rL LLVM
Event Timeline
Thank you for working on this.
This isn't proper solution.
That was recently fixed in https://github.com/google/benchmark/pull/833 by @lenary,
and was cherry-picked to test-suite copy of benchmark in D64237.
Please apply the same diff as in D64237 to llvm/utils/benchmark/ and libcxx/utils/google-benchmark/
Thanks a lot for the guidance @lebedev.ri. I wasn't aware of @lenary change and the other copies.
libcxx/utils/google-benchmark/README.LLVM | ||
---|---|---|
9 ↗ | (On Diff #211323) | I couldn't tell exactly on what version this copy is based, hope this wording is fine. |
Looks good. Small nit below, but beyond that all is fine.
libcxx/utils/google-benchmark/README.LLVM | ||
---|---|---|
9 ↗ | (On Diff #211323) | It seems to be based on https://github.com/google/benchmark/commit/4528c76b718acc9b57956f63069c699ae21edcab - might be worth noting this in the readme. (This commit is between v1.4.1 and v1.5.0). |
Disclaimer: I know nothing about LLVM procedures, so please ignore if it is not something acceptable
This commit is one of the only missing to get LLVM 9 building on a RISC-V 64 GNU/Linux system. Therefore would it be possible to backport it to the 9 branch?
Best to file an issue and put it as a blocker for https://bugs.llvm.org/show_bug.cgi?id=42474