Skip to content

[FEATURE REQUEST] check architecture and set compiler & linker flags accordingly #126

@HartwigHarder

Description

@HartwigHarder

Request a new KPP feature:

to compile kpp on apple silicon based machines I would like to suggest to include in the makefile for Darwin :

ARCH := $(shell uname -m)
ifeq ($(ARCH), x86_64)
    # Commands for Intel-based macOS
    CFLAGS += -arch x86_64
else ifeq ($(ARCH), arm64)
    # Commands for Apple Silicon-based macOS
    CFLAGS += -arch arm64
else
    $(warning Unknown architecture: $(ARCH))
endif

Metadata

Metadata

Assignees

Labels

buildRelated to makefiles and/or compilationfeatureNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions