Because the forwarding headers are generated after main.cpp builds: FAILED: /usr/lib/ccache/c++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT2__ -DBUILDING_WITH_CMAKE=1 -DDATA_DIR=\"share\" -DENABLE_3D_RENDERING=1 -DENABLE_PLUGIN_PROCESS_GTK2=1 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGTEST_HAS_RTTI=0 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DHAVE_CONFIG_H=1 -DMOZ_X11=1 -DTEST_INJECTED_BUNDLE_PATH=\"/home/phil/WebKit/WebKitBuild/Release/lib//libTestWebKitAPIInjectedBundle.so\" -DTEST_WEBKIT2_RESOURCES_DIR=\"/home/phil/WebKit/Tools/TestWebKitAPI/Tests/WebKit2\" -DUSER_AGENT_GTK_MAJOR_VERSION=601 -DUSER_AGENT_GTK_MINOR_VERSION=1 -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -DWTF_PLATFORM_X11=1 -DWTF_USE_3D_GRAPHICS=1 -DWTF_USE_EGL=1 -DWTF_USE_GLX=1 -DWTF_USE_GSTREAMER -DWTF_USE_OPENGL=1 -DWTF_USE_TEXTURE_MAPPER=1 -DWTF_USE_TEXTURE_MAPPER_GL=1 -DWTF_USE_WEBAUDIO_GSTREAMER -DXP_UNIX -std=c++11 -O3 -DNDEBUG -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-omit-frame-pointer -fno-tree-dce -I. -I../../Tools/TestWebKitAPI -I../../Source -IDerivedSources/JavaScriptCore -IDerivedSources/WebCore -I../../Source/JavaScriptCore -I../../Source/JavaScriptCore/API -I../../Source/JavaScriptCore/ForwardingHeaders -I../../Source/JavaScriptCore/assembler -I../../Source/JavaScriptCore/bytecode -I../../Source/JavaScriptCore/disassembler -I../../Source/JavaScriptCore/interpreter -I../../Source/JavaScriptCore/heap -I../../Source/JavaScriptCore/jit -I../../Source/JavaScriptCore/llint -I../../Source/JavaScriptCore/parser -I../../Source/JavaScriptCore/runtime -I../../Source/ThirdParty/gtest/include -I../../Source/WebCore/editing -I../../Source/WebCore/platform -I../../Source/WebCore/platform/graphics -I../../Source/WebCore/platform/text -I../../Source/WebCore/platform/network -I../../Source/WebCore/platform/network/soup -I../../Source/WebKit2/Platform/IPC -I../../Source/WebKit2/Shared -I../../Source/WebKit2/Shared/API/c -I../../Source/WebKit2/Shared/Plugins -I../../Source/WebKit2/UIProcess -I../../Source/WebKit2/WebProcess/InjectedBundle -I../../Source/WebKit2/WebProcess/InjectedBundle/API/c -I../../Source/WTF -IDerivedSources/ForwardingHeaders -I../../Source/WebKit2/UIProcess/API/C/soup -I../../Source/WebKit2/UIProcess/API/C/gtk -I../../Source/WebKit2/UIProcess/API/gtk -I../Dependencies/Root/include/gtk-3.0 -I../Dependencies/Root/include/gio-unix-2.0 -I../Dependencies/Root/include/cairo -I../Dependencies/Root/include/harfbuzz -I../Dependencies/Root/include/gdk-pixbuf-2.0 -I../Dependencies/Root/include/pixman-1 -I../Dependencies/Root/include/freetype2 -I../Dependencies/Root/include/glib-2.0 -I../Dependencies/Root/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/libpng12 -I/usr/include/libdrm -I../Dependencies/Root/include/at-spi2-atk/2.0 -I../Dependencies/Root/include/atk-1.0 -I../Dependencies/Root/include/libsoup-2.4 -MMD -MT Tools/TestWebKitAPI/CMakeFiles/TestJavaScriptCore.dir/gtk/main.cpp.o -MF Tools/TestWebKitAPI/CMakeFiles/TestJavaScriptCore.dir/gtk/main.cpp.o.d -o Tools/TestWebKitAPI/CMakeFiles/TestJavaScriptCore.dir/gtk/main.cpp.o -c ../../Tools/TestWebKitAPI/gtk/main.cpp In file included from ../../Tools/TestWebKitAPI/gtk/main.cpp:26:0: ../../Tools/TestWebKitAPI/config.h:30:42: fatal error: WebCore/PlatformExportMacros.h: No such file or directory #include <WebCore/PlatformExportMacros.h> compilation terminated. [...] [Creating forwarding header for WebCore/platform/PlatformExportMacros.h] [...] ninja: build stopped: subcommand failed.
Created attachment 238847 [details] Patch
*** Bug 132960 has been marked as a duplicate of this bug. ***
Comment on attachment 238847 [details] Patch r=me
Committed r174060: <http://trac.webkit.org/changeset/174060>