Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme: Add cmake build instructions #288

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*.so*
*.dylib*
*.pc
build/
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.22)

project(openlibm
VERSION 0.8.0
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ also supports arm, aarch64, ppc64le, mips, wasm32, riscv, and s390(x).

## Build instructions

### make
1. Use GNU Make to build OpenLibm. This is `make` on most systems, but `gmake` on BSDs.
2. Use `make USEGCC=1` to build with GCC. This is the default on
Linux and Windows.
Expand All @@ -33,6 +34,12 @@ also supports arm, aarch64, ppc64le, mips, wasm32, riscv, and s390(x).
i686. GCC 4.8 is the minimum requirement for correct codegen on
older 32-bit architectures.

### CMake
> NOTE: CMake currently only supports building as a static library.

1. Configure: `cmake -S . -B build/`
2. Build `cmake --build build -j`

## Acknowledgements

PowerPC support for openlibm was graciously sponsored by IBM.
Loading