use a more conventional macro name
also fix an issue with CMake <3.26 compatibility
This commit is contained in:
parent
7962d0a789
commit
512d9746bf
3 changed files with 3 additions and 3 deletions
|
@ -464,7 +464,7 @@ execute_process(
|
||||||
ERROR_VARIABLE output
|
ERROR_VARIABLE output
|
||||||
)
|
)
|
||||||
if (output MATCHES "dyld-1015\.7")
|
if (output MATCHES "dyld-1015\.7")
|
||||||
add_compile_definitions(-DBUGGY_APPLE_LINKER)
|
add_compile_definitions(HAVE_BUGGY_APPLE_LINKER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Architecture specific
|
# Architecture specific
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -241,7 +241,7 @@ endif
|
||||||
|
|
||||||
# this version of Apple ld64 is buggy
|
# this version of Apple ld64 is buggy
|
||||||
ifneq '' '$(findstring dyld-1015.7,$(shell $(CC) $(LDFLAGS) -Wl,-v 2>&1))'
|
ifneq '' '$(findstring dyld-1015.7,$(shell $(CC) $(LDFLAGS) -Wl,-v 2>&1))'
|
||||||
MK_CPPFLAGS += -DBUGGY_APPLE_LINKER
|
MK_CPPFLAGS += -DHAVE_BUGGY_APPLE_LINKER
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# OS specific
|
# OS specific
|
||||||
|
|
|
@ -1273,7 +1273,7 @@ static float make_qkx2_quants(int n, int nmax, const float * restrict x, const f
|
||||||
float max = x[0];
|
float max = x[0];
|
||||||
float sum_w = weights[0];
|
float sum_w = weights[0];
|
||||||
float sum_x = sum_w * x[0];
|
float sum_x = sum_w * x[0];
|
||||||
#ifdef BUGGY_APPLE_LINKER
|
#ifdef HAVE_BUGGY_APPLE_LINKER
|
||||||
// use 'volatile' to prevent unroll and work around a bug in Apple ld64 1015.7
|
// use 'volatile' to prevent unroll and work around a bug in Apple ld64 1015.7
|
||||||
for (volatile int i = 1; i < n; ++i) {
|
for (volatile int i = 1; i < n; ++i) {
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue