3

How do you specify precompiled headers for xcode with gyp, specifically xcode 4.6 with clang.

I only see visual studio options.

'msvs_precompiled_header': 'stdio.h', 'msvs_precompiled_source': 'precomp.c', 

1 Answer 1

6

Gyp is pretty nice but the documentation is awful.

The answer in case anyone runs across the need for it is:

'xcode_settings': { 'GCC_PREFIX_HEADER': 'path/from/gyp/file/to/header.h', 'GCC_PRECOMPILE_PREFIX_HEADER': 'YES', }, 

Also worth noting you can set pretty much everything in this page in a xcode_settings block

Xcode Build Settings Reference

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.