Skip to content

Commit

Permalink
Xcode project: add precompiled header file for release build
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mattsc committed Jul 3, 2014
1 parent c43bf75 commit b668c0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions 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 <sys/types.h>
2 changes: 1 addition & 1 deletion projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj
Expand Up @@ -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",
Expand Down

0 comments on commit b668c0e

Please sign in to comment.