From 1199fe2f90d3b2b7361eff270ae3f3bd85f4af62 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 Mar 2015 14:28:17 +0100 Subject: [PATCH] fix OSX/Clang optimized builds not quite sure how -fomit-frame-pointer can make a difference with 64bit builds, but it does crash on start in gdk_window_new -> .. -> [NSColor _controlColor] -> GetThemeImage -> _NSAppKitThemeLock with no other threads involved. full backtrace: http://pastebin.com/FxsCMzSY --- wscript | 1 + 1 file changed, 1 insertion(+) diff --git a/wscript b/wscript index 5e9b30b6c6..63a7537bc6 100644 --- a/wscript +++ b/wscript @@ -124,6 +124,7 @@ compiler_flags_dictionaries['clang'] = clang_dict; clang_darwin_dict = compiler_flags_dictionaries['clang'].copy(); clang_darwin_dict['cxx-strict'] = [ '-ansi', '-Wnon-virtual-dtor', '-Woverloaded-virtual', ] +clang_darwin_dict['full-optimization'] = [ '-O3', '-ffast-math', '-fstrength-reduce' ] compiler_flags_dictionaries['clang-darwin'] = clang_darwin_dict; def fetch_git_revision ():