Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 762 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 762 Bytes

Overview

The LLVM compiler runtime (compiler-rt) is essential in clang-based builds. However, it should be noted that the compiler-rt is exclusively accessible in the form of source code for RISC-V targets. Consequently, within this project, we possess the capability to construct it entirely from scratch.

Build

To build it, run make, the static library will be generated at build/libcompiler-rt.a. Then use following Makefile configuration:

LDFLAGS += -L./build -lcompiler-rt

Source

This project is completely from the llvm project:

  • Repo: https://github.com/llvm/llvm-project
  • Branch: release/18.x
  • Commit: 3b5b5c1

See more: https://github.com/llvm/llvm-project/blob/release/18.x/compiler-rt/lib/builtins/README.txt