Permalink
Browse files

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

…u'll have to wait.
  • Loading branch information...
dave-andersen committed Jan 13, 2014
1 parent f79ef02 commit aed2ce26a0022e2df1eed34f3699edd9f74444df
Showing with 6 additions and 3 deletions.
  1. +0 −3 src/makefile.osx
  2. +6 −0 src/sha512.c
View
@@ -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
@@ -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

0 comments on commit aed2ce2

Please sign in to comment.