Commit 204ab42 1 parent f31b096 commit 204ab42 Copy full SHA for 204ab42
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,14 @@ jobs:
36
36
run : |
37
37
sudo apt-get install libgmp-dev libboost-python-dev libpython3-dev libboost-system-dev build-essential -y
38
38
cd src
39
- make ${{ matrix.config }} -f Makefile.vdf-client
39
+ VDF_MODE=1 make ${{ matrix.config }} -f Makefile.vdf-client
40
40
41
41
- name : Build vdf-client on Mac
42
42
if : startsWith(matrix.os, 'mac')
43
43
run : |
44
44
brew install boost
45
45
cd src
46
+ # TODO: Are we expected to fail to compile with VDF_MODE=1 on macOS
46
47
make ${{ matrix.config }} -f Makefile.vdf-client
47
48
48
49
- name : Test vdf-client
Original file line number Diff line number Diff line change 8
8
9
9
LDFLAGS += -flto $(NOPIE) -g
10
10
LDLIBS += -lgmpxx -lgmp -lboost_system -pthread
11
- CXXFLAGS += -flto -std=c++1z -D VDF_MODE=0 -D FAST_MACHINE=1 -pthread $(NOPIE) -fvisibility=hidden
11
+
12
+ VDF_MODE ?= 0
13
+ CXXFLAGS += -flto -std=c++1z -D VDF_MODE=$(VDF_MODE) -D FAST_MACHINE=1 -pthread $(NOPIE) -fvisibility=hidden
12
14
ifeq ($(UNAME),Darwin)
13
15
CXXFLAGS += -D CHIAOSX=1
14
16
endif
You can’t perform that action at this time.
0 commit comments