From d071d19ca62bd66cb76b11b8253b2f6217a6e2ef Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 7 Nov 2016 17:25:53 -0800 Subject: [PATCH] tweak various things for newer compilers --- Makefile | 3 ++- README.md | 17 +++++------------ include/util.hpp | 4 ++++ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 6a299b7..32470bd 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/README.md b/README.md index d929bc7..9b5460b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/include/util.hpp b/include/util.hpp index b8d38e3..fbfd3c2 100644 --- a/include/util.hpp +++ b/include/util.hpp @@ -2,7 +2,11 @@ #include #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmisleading-indentation" +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include +#pragma GCC diagnostic pop struct Aligned { EIGEN_MAKE_ALIGNED_OPERATOR_NEW