File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 4
4
* .o
5
5
.cache
6
6
build /
7
+ build-em /
7
8
out /
8
9
.vs /
9
10
.vscode /
Original file line number Diff line number Diff line change @@ -22,12 +22,20 @@ ifeq ($(UNAME_S),Darwin)
22
22
CFLAGS += -pthread
23
23
CXXFLAGS += -pthread
24
24
endif
25
+ ifeq ($(UNAME_S ) ,FreeBSD)
26
+ CFLAGS += -pthread
27
+ CXXFLAGS += -pthread
28
+ endif
25
29
26
30
# Architecture specific
27
31
# TODO: probably these flags need to be tweaked on some architectures
32
+ # feel free to update the Makefile for your architecture and send a pull request or issue
28
33
ifeq ($(UNAME_M ) ,x86_64)
29
34
CFLAGS += -mavx -mavx2 -mfma -mf16c
30
35
endif
36
+ ifeq ($(UNAME_M ) ,amd64)
37
+ CFLAGS += -mavx -mavx2 -mfma -mf16c
38
+ endif
31
39
ifneq ($(filter arm% ,$(UNAME_M ) ) ,)
32
40
# Mac M1
33
41
endif
Original file line number Diff line number Diff line change 2
2
3
3
#if defined(_MSC_VER ) || defined(__MINGW32__ )
4
4
#include <malloc.h> // using malloc.h with MSC/MINGW
5
- #else
5
+ #elif !defined( __FreeBSD__ )
6
6
#include <alloca.h>
7
7
#endif
8
8
You can’t perform that action at this time.
0 commit comments