Merge pull request #218 from jcestibariz/fix-wasm32

Fix compilation errors on wasm32
This commit is contained in:
Viral B. Shah 2021-02-06 11:55:26 -05:00 committed by GitHub
commit 2d10c90c77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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;
/*