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 86a5c1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,21 @@ 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)
ASFLAGS += $(CLANG_ASFLAGS)
endif

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

0 comments on commit 86a5c1f

Please sign in to comment.