Skip to content

Instantly share code, notes, and snippets.

@zenoalbisser
Created November 2, 2011 14:18
Show Gist options
  • Save zenoalbisser/1333747 to your computer and use it in GitHub Desktop.
Save zenoalbisser/1333747 to your computer and use it in GitHub Desktop.
diff --git a/src/3rdparty/webkit/Source/WebKit.pri b/src/3rdparty/webkit/Source/WebKit.pri
index 5bd9577..bc889d1 100644
--- a/src/3rdparty/webkit/Source/WebKit.pri
+++ b/src/3rdparty/webkit/Source/WebKit.pri
@@ -10,6 +10,13 @@ CONFIG(QTDIR_build) {
# Make sure we compile both debug and release on mac when inside Qt.
# This line was extracted from qbase.pri instead of including the whole file
win32|mac:!macx-xcode:CONFIG += debug_and_release
+ # In case we are building a universal binary for Qt, building debug is not
+ # possible because we would exceed the maximum library size for 32bit.
+ mac:CONFIG(QT_CONFIG, x86):CONFIG(QT_CONFIG, x86_64):debug|debug_and_release {
+ message(Building a universal binary with debug symbols is not possible. Building release!)
+ CONFIG -= debug_and_release debug
+ CONFIG += release
+ }
} else {
!CONFIG(release, debug|release) {
OBJECTS_DIR = obj/debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment