Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 45 additions & 8 deletions ccore/ccore.mk
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,57 @@ endif


# Target flag depending on platform
ifeq ($(PLATFORM), 32-bit)
CFLAG_PLATFORM = -m32
LFLAG_PLATFORM = -m32
else
ifeq ($(PLATFORM), 64-bit)
CFLAG_PLATFORM = -m64
LFLAG_PLATFORM = -m64
ifeq ($(OSNAME), macos)

# Arm case of MacOs
ifeq ($(shell uname -m), arm64)
CFLAG_PLATFORM = -march=native
LFLAG_PLATFORM = -march=native
else
ifeq ($(PLATFORM), 32-bit)
CFLAG_PLATFORM = -m32
LFLAG_PLATFORM = -m32
else
ifeq ($(PLATFORM), 64-bit)
CFLAG_PLATFORM = -m64
LFLAG_PLATFORM = -m64
else
PLATFORM = 64-bit
CFLAG_PLATFORM = -m64
LFLAG_PLATFORM = -m64
endif
endif
endif
else
ifeq ($(OSNAME), linux)
# Arm case of MacOs
ifeq ($(shell uname --m), aarch64)
CFLAG_PLATFORM = -march=native
LFLAG_PLATFORM = -march=native
else
ifeq ($(PLATFORM), 32-bit)
CFLAG_PLATFORM = -m32
LFLAG_PLATFORM = -m32
else
ifeq ($(PLATFORM), 64-bit)
CFLAG_PLATFORM = -m64
LFLAG_PLATFORM = -m64
else
PLATFORM = 64-bit
CFLAG_PLATFORM = -m64
LFLAG_PLATFORM = -m64
endif
endif
endif

else
PLATFORM = 64-bit
CFLAG_PLATFORM = -m64
LFLAG_PLATFORM = -m64

endif
endif

endif

# Definitions
DEFINITION_FLAGS =
Expand Down
1 change: 1 addition & 0 deletions ccore/include/pyclustering/utils/metric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <functional>
#include <string>
#include <vector>
#include <limits>


namespace pyclustering {
Expand Down