16 Commits

Author SHA1 Message Date
Andrey Turkin
5992e5a177
Fix risc-v build (#305)
Two fixes in one:

Firstly, replace non-standard __uint64_t with standard (but optional) uint64_t.
__uint64_t is not a part of C standard; it is defined by some platforms but might not
be present in every environment (e.g. in freestanding build). On the other hand, uint64_t
is standard C. It is optional but virtual guaranteed to be present for any 32/64 bit machine.

Secondly, mark riscv64 for 128-bit long double in make/cmake files. This fixes cmake
build (which detects presence of long double and tries to compile extended functions),
and brings make build to do the same.

Co-authored-by: Viral B. Shah <ViralBShah@users.noreply.github.com>
2024-08-08 17:19:43 -04:00
Vilius Sutkus '89
d66f477283
Merge pull request #299 from theos-sh/master
CMake Changes
2024-06-25 16:40:52 +03:00
Vilius Sutkus '89
c1e8462f8d Regex match Make.inc to match CMake version with Autotools version 2024-06-22 13:54:54 +03:00
Vilius Sutkus '89
3335ebc9d8 Generate pkg-config.pc file in CMake 2024-06-21 13:25:46 +03:00
Vilius Sutkus '89
7df0e2f024 Compile time check if LONG DOUBLE is different from DOUBLE
Hardcoded config value provided wrong value for Android i686.
2024-06-21 13:25:30 +03:00
Vilius Sutkus '89
a245816e2a Add support for Android x86 (i686) 2024-06-21 12:19:37 +03:00
Vilius Sutkus '89
f051cd47c8 Add support for armv7-a 2024-06-21 12:18:55 +03:00
Vilius Sutkus '89
5fa83b1bd7 Use upcoming version number in CMakeLists 2024-06-21 12:16:36 +03:00
Theo Paris
a1fdd7c72b
Merge branch 'master' into master 2024-06-19 13:45:55 -07:00
Vilius Sutkus '89
87e5f0b3f2
CMake updates (#302)
* Add BUILD_SHARED_LIBS option to choose between shared and static lib

* Fix build break for Android aarch64

* Install built target

* Set the correct version number

* Don't add include dirs through CFlags. Include dirs are already set as target property

* Install all relevant headers, not just from include dir

* Update note about BUILD_SHARED_LIBS in README.md

* Fix mistake in README.md, option(BUILD_SHARED_LIBS ON) sets the lib to shared by default
2024-06-19 15:02:50 -04:00
Theo Paris
fcded8581a
build: allow riscv64 2024-03-15 16:02:45 -07:00
Theo Paris
46c36769ec
build: allow riscv64 2024-03-15 15:58:40 -07:00
Theo Paris
21d22c8ad0
build: apply cmake fixes 2024-03-15 15:55:19 -07:00
Ryonald Teofilo
f3eec73a3f
Correct long double check in CMakeLists.txt and remove duplicate definitions for static library builds too (#293)
* Fix mistake in CMakeLists.txt, only add sources in ld128 if long double isn't the same as double + aarch64

* Update README to mention that cmake build now defaults to shared library
2024-01-16 17:26:18 -05:00
Ryonald Teofilo
b31c64529c
Add support for building shared library with CMake (#291)
* Add support to build openlibm as a shared library using cmake by not compiling the C implementation when a native one exists

* Add CMake static and shared library build instruction and also added info about support for loongarch64

---------

Co-authored-by: Viral B. Shah <ViralBShah@users.noreply.github.com>
2024-01-11 10:36:14 +05:30
Ryonald Teofilo
a010123801
Add CMake support (#286)
* Add CMakeLists file to build with CMake, tested with MinGW on Windows x64 and Apple Clang on MacOS arm64

* Use regex to ensure 'AppleClang' also passes under Clang
2024-01-10 09:50:58 +05:30