Browse Source

Compile with -march=nehalem. Remove -std=c11 for C files because it causes M_PI, M_SQRT2, etc to not be defined.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
cd71d926e4
2 changed files with 2 additions and 4 deletions
  1. +1
    -3
      compile.mk
  2. +1
    -1
      dep.mk

+ 1
- 3
compile.mk View File

@@ -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


+ 1
- 1
dep.mk View File

@@ -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


Loading…
Cancel
Save