Skip to content

Commit 9d36f15

Browse files
committed
MacOS: Fix Blake2s SSE 4.1 not being built
For now, we set GCC_GTEQ_430 to 1 to each OS. Later we will always suppose that gcc is newer than 4.3 and remove this logic.
1 parent 8eb232a commit 9d36f15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ ifeq "$(shell uname -s)" "Darwin"
303303
CC := gcc
304304
CXX := g++
305305

306+
GCC_GTEQ_430 := 1
307+
306308
C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_MACOSX -mmacosx-version-min=$(VC_OSX_TARGET) -isysroot $(VC_OSX_SDK_PATH)
307309
LFLAGS += -mmacosx-version-min=$(VC_OSX_TARGET) -Wl,-syslibroot $(VC_OSX_SDK_PATH)
308310
WX_CONFIGURE_FLAGS += --with-macosx-version-min=$(VC_OSX_TARGET) --with-macosx-sdk=$(VC_OSX_SDK_PATH)
@@ -381,6 +383,8 @@ ifeq "$(shell uname -s)" "FreeBSD"
381383

382384
CC := cc
383385
CXX := c++
386+
387+
GCC_GTEQ_430 := 1
384388

385389
ifeq "$(TC_BUILD_CONFIG)" "Release"
386390
C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
@@ -441,6 +445,8 @@ ifeq "$(shell uname -s)" "OpenBSD"
441445
CC := cc
442446
CXX := c++
443447

448+
GCC_GTEQ_430 := 1
449+
444450
ifeq "$(TC_BUILD_CONFIG)" "Release"
445451
C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
446452
LFLAGS += -Wl,--gc-sections -pie

0 commit comments

Comments
 (0)