Bug 139286

Summary: FeatureDefines.xcconfig: Workaround bug in Xcode 5.1.1 when defining ENABLE_WEB_REPLAY
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: WebKit Misc.Assignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: burg, commit-queue, dbates, ddkilzer, dino, mrowe, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.8   
Bug Depends on: 138813    
Bug Blocks:    
Attachments:
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2014-12-04 21:13:08 PST
Xcode 5.1.1 has a bug where using an SDK selector ([sdk=macosx*]) on the LHS of a variable definition and a sub-variable expression on the RHS causes the entire expression to be ignored.

In other words, when building with Xcode 5.1.1 on 10.8, this line in FeatureDefines.xcconfig is completely ignored:

ENABLE_WEB_REPLAY[sdk=macosx*] = $(ENABLE_WEB_REPLAY_macosx_$(CONFIGURATION));

The workaround is to switch back to using PLATFORM_NAME and remove the SDK selector as long as 10.8 is supported.
Comment 1 David Kilzer (:ddkilzer) 2014-12-04 21:19:14 PST
Created attachment 242615 [details]
Patch v1
Comment 2 WebKit Commit Bot 2014-12-05 09:55:03 PST
Comment on attachment 242615 [details]
Patch v1

Clearing flags on attachment: 242615

Committed r176846: <http://trac.webkit.org/changeset/176846>
Comment 3 WebKit Commit Bot 2014-12-05 09:55:06 PST
All reviewed patches have been landed.  Closing bug.