summaryrefslogtreecommitdiff
path: root/libs/pbd/fpu.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-03-04 18:05:47 +0100
committerRobin Gareus <robin@gareus.org>2016-03-04 18:05:47 +0100
commit3dc09d42abf666932a740720a1057a7edd0dbe49 (patch)
tree312eadb5532f8d8336876e0ad4cf62bfeb5249a4 /libs/pbd/fpu.cc
parentc26a53d401307f5cfde27b140e361967edd09def (diff)
allow to override FPU detection
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r--libs/pbd/fpu.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc
index 9838b4565b..fe2a329439 100644
--- a/libs/pbd/fpu.cc
+++ b/libs/pbd/fpu.cc
@@ -143,6 +143,11 @@ FPU::FPU ()
error << _("FPU object instantiated more than once") << endmsg;
}
+ if (getenv("ARDOUR_FPU_FLAGS")) {
+ _flags = Flags (atoi (getenv("ARDOUR_FPU_FLAGS")));
+ return;
+ }
+
#if !( (defined __x86_64__) || (defined __i386__) || (defined _M_X64) || (defined _M_IX86) ) // !ARCH_X86
/* Non-Intel architecture, nothing to do here */
return;