From b668c0e248205f8c4503326f3ddd9f0cabf36412 Mon Sep 17 00:00:00 2001 From: mattsc Date: Wed, 2 Jul 2014 19:02:09 -0700 Subject: [PATCH] Xcode project: add precompiled header file for release build The current combination of SDKs and build targets for release builds does not include sys/types.h automatically any more (while it does for debug builds). --- projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch | 7 +++++++ projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch diff --git a/projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch b/projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch new file mode 100644 index 000000000000..b1ccb4c8bdff --- /dev/null +++ b/projectfiles/Xcode/Mac Sources/Wesnoth_Prefix_Release.pch @@ -0,0 +1,7 @@ +// +// This is now needed for release builds of the 'Wesnoth' target in the 'Wesnoth' project +// because somehow sys/types.h does not seem to be added automatically in the latest Xcode +// any more for the combination of SDKs and build targets used for release builds. +// + +#include diff --git a/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj b/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj index 8e2a5f1186c1..53a40ac26dce 100644 --- a/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj +++ b/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj @@ -4992,7 +4992,7 @@ ); GCC_OPTIMIZATION_LEVEL = s; GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ""; + GCC_PREFIX_HEADER = "./Mac Sources/Wesnoth_Prefix_Release.pch"; GCC_PREPROCESSOR_DEFINITIONS = ( "LOCALEDIR=\\\"translations\\\"", "LUA_USE_MACOSX=1",