Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing build on MacOS by disabling avx2. Sorry, Macbook pro folks, yo…

…u'll have to wait.
  • Loading branch information...
commit aed2ce26a0022e2df1eed34f3699edd9f74444df 1 parent f79ef02
@dave-andersen authored
Showing with 6 additions and 3 deletions.
  1. +0 −3  src/makefile.osx
  2. +6 −0 src/sha512.c
View
3  src/makefile.osx
@@ -68,9 +68,6 @@ OBJS= \
all: ptsminer
-obj/sha512_avx2.o:
- $(CC) -c -O3 intel/sha512_avx2.S -o obj/sha512_avx2.o
-
obj/%.o: %.cpp %.hpp
$(CXX) $(CFLAGS) -c -O2 $(DEBUGFLAGS) $(xCOMPILEFLAGS) -o $@ $<
obj/sph_%.o: sph_%.c
View
6 src/sha512.c
@@ -168,8 +168,14 @@ Init_SHA512_avx ()
void
Init_SHA512_avx2()
{
+#ifdef __APPLE__
+ /* Sorry ... */
+ sha512_update_func = sha512_avx;
+ sha512_update_single_func = sha512_avx_single;
+#else
sha512_update_func = sha512_transform_rorx;
sha512_update_single_func = sha512_transform_single_rorx;
+#endif
}
void
Please sign in to comment.
Something went wrong with that request. Please try again.