tweak various things for newer compilers

This commit is contained in:
Connor Olding 2016-11-07 17:25:53 -08:00
parent 1df52ef75f
commit d071d19ca6
3 changed files with 11 additions and 13 deletions

View File

@ -34,7 +34,8 @@ VST_SRC = ${VST_CPP:%=$(VST_CPP_DIR)/%}
VST_OBJ = ${VST_CPP:%.cpp=$(BIN)/%.o}
VST_DEF = $(VST_SDK_DIR)/public.sdk/samples/vst2.x/win/vstplug.def
GENERAL_FLAGS = -Wall -Winline -Wno-unused-function -Wno-sign-compare -I . -I include
GENERAL_FLAGS = -Wall -Winline -Wno-unused-function -Wno-sign-compare
GENERAL_FLAGS += -I . -I include
ALL_CXXFLAGS = $(GENERAL_FLAGS) -std=gnu++11 $(CXXFLAGS)
ALL_LDFLAGS = -lm $(LDFLAGS)

View File

@ -33,25 +33,18 @@ required to build crap.
[eigen]: http://eigen.tuxfamily.org/
### clang is strongly recommended
gcc can potentially produce significantly slower code,
and odds are that your version is horribly outdated anyway.
*Debian/Ubuntu users:* your stable version of g++ can't even build this.
just `apt-get install clang-3.6` and export `CXX=clang++-3.6` when building.
If you really have to use g++,
you may need to add `-fabi-version=6` to CXXFLAGS.
you may need to add `-fabi-version=6` to CXXFLAGS if you use g++.
### general building
`make linux` or `make windows` (works well with [mxe])
`make linux` or `make windows`
(works well with [mxe][mxe] and [msys2 mingw64][msys2])
[mxe]: //mxe.cc
[msys2]: //msys2.github.io
`make linux-arm` requires a CPU with a NEON unit
remember to export `VST_SDK_DIR` to the path of your `vstsdk2.4/`
**remember to export** `VST_SDK_DIR` **to the path of your** `vstsdk2.4/`
other targets:
* all: no hand-holding.

View File

@ -2,7 +2,11 @@
#include <math.h>
#include <stdint.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <Eigen/Core>
#pragma GCC diagnostic pop
struct Aligned {
EIGEN_MAKE_ALIGNED_OPERATOR_NEW