Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass clang's assembler #32

Merged
merged 1 commit into from
May 24, 2024
Merged
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
11 changes: 11 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,23 @@ WIN = $(shell $(CC) -dM -E - < /dev/null | grep "__WIN64__" | awk '{ print $$3 }

VERSION := 0.1.0


ASFLAGS += -g -fpic
CFLAGS += -g -Wall -Werror
CLANG_ASFLAGS = "-fno-integrated-as"
LDFLAGS += -L .
testlibs = -lhashtree
benchlibs = -lhashtree -lm

COMPILER_NAME := $(shell $(CC) --version 2>/dev/null | head -n 1)
IS_CLANG := $(findstring clang, $(COMPILER_NAME))

ifeq ($(IS_CLANG),clang)
ifneq ($(ARM),1)
ASFLAGS += $(CLANG_ASFLAGS)
endif
endif

ifeq ($(HAVE_OPENSSL),1)
CFLAGS += -DHAVE_OPENSSL
benchlibs += -lcrypto
Expand Down
Loading