diff --git a/Makefile.pre.in b/Makefile.pre.in index 650838d68286c7..06653e5e52ab45 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1581,8 +1581,8 @@ $(LIBHACL_BLAKE2_LIB_STATIC): $(LIBHACL_BLAKE2_OBJS) Modules/_hacl/Hacl_HMAC.o: $(srcdir)/Modules/_hacl/Hacl_HMAC.c $(LIBHACL_HMAC_HEADERS) $(CC) -c $(LIBHACL_CFLAGS) -o $@ $(srcdir)/Modules/_hacl/Hacl_HMAC.c -Modules/_hacl/Hacl_Streaming_HMAC.o: $(srcdir)/Modules/_hacl/Hacl_Streaming_HMAC.c $(LIBHACL_HMAC_HEADERS) - $(CC) -Wno-unused-variable -c $(LIBHACL_CFLAGS) -o $@ $(srcdir)/Modules/_hacl/Hacl_Streaming_HMAC.c +Modules/_hacl/Hacl_Streaming_HMAC.o: $(srcdir)/Modules/_hmac_hacl.c $(srcdir)/Modules/_hacl/Hacl_Streaming_HMAC.c $(LIBHACL_HMAC_HEADERS) + $(CC) -Wno-unused-variable -c $(LIBHACL_CFLAGS) -o $@ $(srcdir)/Modules/_hmac_hacl.c $(LIBHACL_HMAC_LIB_STATIC): $(LIBHACL_HMAC_OBJS) -rm -f $@ $(AR) $(ARFLAGS) $@ $(LIBHACL_HMAC_OBJS) diff --git a/Modules/_hmac_hacl.c b/Modules/_hmac_hacl.c new file mode 100644 index 00000000000000..358844e63c2ce3 --- /dev/null +++ b/Modules/_hmac_hacl.c @@ -0,0 +1,11 @@ +/* Compile the HACL* streaming HMAC implementation with explicit SIMD defaults. */ +#include "_hacl/internal/Hacl_Streaming_HMAC.h" + +#ifndef HACL_CAN_COMPILE_VEC128 +# define HACL_CAN_COMPILE_VEC128 0 +#endif +#ifndef HACL_CAN_COMPILE_VEC256 +# define HACL_CAN_COMPILE_VEC256 0 +#endif + +#include "_hacl/Hacl_Streaming_HMAC.c" diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index d16aa7b4254b45..9498b856cb266a 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -458,7 +458,7 @@ - + diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters index 99b2631b673a80..c63ffcae647c11 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters @@ -1028,7 +1028,7 @@ Modules - + Modules