Browse Source

replace default -mavx2 -mbmi2 with -march=native

master
Michael Hamburg 7 years ago
parent
commit
17a77a5820
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      Makefile

+ 1
- 5
Makefile View File

@@ -16,8 +16,6 @@ BUILD_LIB = build/lib
BUILD_INC = src/GENERATED/include
BUILD_BIN = build/bin
BUILD_IBIN = build/obj/bin
BATBASE=ed448goldilocks_decaf_bats_$(TODAY)
BATNAME=build/$(BATBASE)

ifeq ($(UNAME),Darwin)
CC = clang
@@ -49,8 +47,7 @@ endif

TODAY = $(shell date "+%Y-%m-%d")

#FIXME ARCHFLAGS
ARCHFLAGS ?= -mavx2 -mbmi2 #TODO
ARCHFLAGS ?= -march=native

ifeq ($(CC),clang)
WARNFLAGS_C += -Wgcc-compat
@@ -266,7 +263,6 @@ else
endif



$(BUILD_OBJ)/%.o: src/%.c $(HEADERS)
$(CC) $(CFLAGS) -c -o $@ $<


Loading…
Cancel
Save