From bb2c65be1cddae6d13d5cc0c5c5b9e821e05897d Mon Sep 17 00:00:00 2001 From: Ingo Date: Fri, 27 Feb 2015 14:07:01 +0100 Subject: [PATCH] Abort compile when -ffast-math flag is set, Issue 2698 --- rtgui/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtgui/main.cc b/rtgui/main.cc index f268139f8..975d1ef32 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -22,6 +22,12 @@ // newer (non customized) versions of this file go to raw.cc_new // This file is for your program, I won't touch it again! + +#ifdef __GNUC__ + #if defined(__FAST_MATH__) + #error Using the -ffast-math CFLAG is known to lead to problems. Disable it to compile RawTherapee. + #endif +#endif #include "config.h" #include