Skip to content

Commit

Permalink
Bypass clang's assembler
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed May 24, 2024
1 parent 27906d9 commit 1efb91a
Showing 1 changed file with 11 additions and 0 deletions.
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

0 comments on commit 1efb91a

Please sign in to comment.