mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 04:23:41 +01:00
Fix compilation errors on wasm32
This commit is contained in:
parent
3cb804556f
commit
9152b0d1b0
2 changed files with 6 additions and 6 deletions
11
Make.inc
11
Make.inc
|
@ -29,17 +29,16 @@ USEGCC ?= 0
|
||||||
USECLANG ?= 1
|
USECLANG ?= 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AR ?= $(TOOLPREFIX)ar
|
|
||||||
|
|
||||||
ifeq ($(ARCH),wasm32)
|
ifeq ($(ARCH),wasm32)
|
||||||
CC ?= clang-8
|
USECLANG = 1
|
||||||
USEGCC ?= 0
|
TOOLPREFIX = llvm-
|
||||||
CFLAGS_add += -fno-builtin -fno-strict-aliasing
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
AR ?= $(TOOLPREFIX)ar
|
||||||
|
|
||||||
ifeq ($(USECLANG),1)
|
ifeq ($(USECLANG),1)
|
||||||
USEGCC ?= 0
|
USEGCC ?= 0
|
||||||
CC ?= clang
|
CC = clang
|
||||||
CFLAGS_add += -fno-builtin -fno-strict-aliasing
|
CFLAGS_add += -fno-builtin -fno-strict-aliasing
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -304,6 +304,7 @@ OLM_DLLEXPORT double trunc(double);
|
||||||
* BSD math library entry points
|
* BSD math library entry points
|
||||||
*/
|
*/
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
OLM_DLLEXPORT int isinff(float) __pure2;
|
||||||
OLM_DLLEXPORT int isnanf(float) __pure2;
|
OLM_DLLEXPORT int isnanf(float) __pure2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue