From 9152b0d1b031fc0a20f7d06596df9ff0adcd7160 Mon Sep 17 00:00:00 2001 From: JC Estibariz Date: Fri, 13 Nov 2020 23:14:33 -0500 Subject: [PATCH] Fix compilation errors on wasm32 --- Make.inc | 11 +++++------ include/openlibm_math.h | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Make.inc b/Make.inc index f9b3397..8e443c8 100644 --- a/Make.inc +++ b/Make.inc @@ -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 diff --git a/include/openlibm_math.h b/include/openlibm_math.h index 272721d..3e510a9 100644 --- a/include/openlibm_math.h +++ b/include/openlibm_math.h @@ -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; /*