From cd71d926e4bc04db666783e397175e8674ac794f Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 26 Oct 2021 19:10:12 -0400 Subject: [PATCH] Compile with -march=nehalem. Remove -std=c11 for C files because it causes M_PI, M_SQRT2, etc to not be defined. --- compile.mk | 4 +--- dep.mk | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compile.mk b/compile.mk index f1213178..e5064aed 100644 --- a/compile.mk +++ b/compile.mk @@ -14,13 +14,11 @@ FLAGS += -MMD -MP # Debugger symbols. These are removed with `strip`. FLAGS += -g # Optimization -FLAGS += -O3 -march=core2 -funsafe-math-optimizations +FLAGS += -O3 -march=nehalem -funsafe-math-optimizations # Warnings FLAGS += -Wall -Wextra -Wno-unused-parameter # C++ standard CXXFLAGS += -std=c++11 -# C standard -CFLAGS += -std=c11 # Architecture-independent flags ifdef ARCH_LIN diff --git a/dep.mk b/dep.mk index 7a866cab..1d541269 100644 --- a/dep.mk +++ b/dep.mk @@ -5,7 +5,7 @@ DEP_LOCAL ?= dep $(shell mkdir -p $(DEP_LOCAL)) DEP_PATH := $(abspath $(DEP_LOCAL)) -DEP_FLAGS += -g -O3 -march=nocona +DEP_FLAGS += -g -O3 -march=nehalem # This is needed for Rack for DAWs. # Static libs don't usually compiled with -fPIC, but since we're including them in a shared library, it's needed. DEP_FLAGS += -fPIC