Browse Source
Merge pull request #129 from DavidLDawes/dev
On Mac, force 64 bit as needed
metaverse
Asher Dawes
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/snark/Makefile
|
|
@ -16,7 +16,12 @@ endif |
|
|
|
# To override these, use "make OPTFLAGS=..." etc.
|
|
|
|
CURVE = BN128 |
|
|
|
OPTFLAGS = -O2 -march=x86-64 -g -mtune=x86-64 |
|
|
|
FEATUREFLAGS = -DUSE_ASM -DMONTGOMERY_OUTPUT |
|
|
|
|
|
|
|
ifneq ($(PLATFORM),darwin) |
|
|
|
FEATUREFLAGS = -DUSE_ASM -DMONTGOMERY_OUTPUT |
|
|
|
else |
|
|
|
FEATUREFLAGS = -DUSE_ASM -DMONTGOMERY_OUTPUT -D__SIZE_TYPE__="unsigned long long" |
|
|
|
endif |
|
|
|
|
|
|
|
# Initialize this using "CXXFLAGS=... make". The makefile appends to that.
|
|
|
|
CXXFLAGS += -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wno-comment -Wfatal-errors $(OPTFLAGS) $(FEATUREFLAGS) -DCURVE_$(CURVE) |
|
|
|