Skip to content

Commit 9152b0d

Browse files
committed
Fix compilation errors on wasm32
1 parent 3cb8045 commit 9152b0d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Make.inc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ USEGCC ?= 0
2929
USECLANG ?= 1
3030
endif
3131

32-
AR ?= $(TOOLPREFIX)ar
33-
3432
ifeq ($(ARCH),wasm32)
35-
CC ?= clang-8
36-
USEGCC ?= 0
37-
CFLAGS_add += -fno-builtin -fno-strict-aliasing
33+
USECLANG = 1
34+
TOOLPREFIX = llvm-
3835
endif
3936

37+
AR ?= $(TOOLPREFIX)ar
38+
4039
ifeq ($(USECLANG),1)
4140
USEGCC ?= 0
42-
CC ?= clang
41+
CC = clang
4342
CFLAGS_add += -fno-builtin -fno-strict-aliasing
4443
endif
4544

include/openlibm_math.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ OLM_DLLEXPORT double trunc(double);
304304
* BSD math library entry points
305305
*/
306306
#if __BSD_VISIBLE
307+
OLM_DLLEXPORT int isinff(float) __pure2;
307308
OLM_DLLEXPORT int isnanf(float) __pure2;
308309

309310
/*

0 commit comments

Comments
 (0)