Fix compilation errors on wasm32

dev
JC Estibariz 2 years ago
parent 3cb804556f
commit 9152b0d1b0
  1. 11
      Make.inc
  2. 1
      include/openlibm_math.h

@ -29,17 +29,16 @@ USEGCC ?= 0
USECLANG ?= 1
endif
AR ?= $(TOOLPREFIX)ar
ifeq ($(ARCH),wasm32)
CC ?= clang-8
USEGCC ?= 0
CFLAGS_add += -fno-builtin -fno-strict-aliasing
USECLANG = 1
TOOLPREFIX = llvm-
endif
AR ?= $(TOOLPREFIX)ar
ifeq ($(USECLANG),1)
USEGCC ?= 0
CC ?= clang
CC = clang
CFLAGS_add += -fno-builtin -fno-strict-aliasing
endif

@ -304,6 +304,7 @@ OLM_DLLEXPORT double trunc(double);
* BSD math library entry points
*/
#if __BSD_VISIBLE
OLM_DLLEXPORT int isinff(float) __pure2;
OLM_DLLEXPORT int isnanf(float) __pure2;
/*

Loading…
Cancel
Save