RESOLVED FIXED 117674
Support using clang instead of gcc for bindings preprocessing
https://bugs.webkit.org/show_bug.cgi?id=117674
Summary Support using clang instead of gcc for bindings preprocessing
Darin Adler
Reported 2013-06-15 10:45:27 PDT
Support using clang instead of gcc for bindings preprocessing
Attachments
Patch (2.17 KB, patch)
2013-06-15 10:46 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2013-06-15 10:46:08 PDT
WebKit Commit Bot
Comment 2 2013-06-15 19:15:58 PDT
Comment on attachment 204771 [details] Patch Clearing flags on attachment: 204771 Committed r151619: <http://trac.webkit.org/changeset/151619>
WebKit Commit Bot
Comment 3 2013-06-15 19:16:00 PDT
All reviewed patches have been landed. Closing bug.
David Kilzer (:ddkilzer)
Comment 4 2013-06-15 20:09:46 PDT
The 'CC' environment variable should have been set to the correct compiler by the "Generate Derived Sources" build phase script (unless you were running the scripts outside of an Xcode build). In the case of running the scripts outside of Xcode, the proper way to fix this for Mac OS X is to use 'xcrun' to find 'cc', which maps to the default compiler for the specified SDK (or the "current" SDK on Mac OS X) rather than to hard-code paths that assume the "CLTools" package is installed with Xcode (which isn't always true): xcrun -find cc
Mark Rowe (bdash)
Comment 5 2013-06-15 20:17:22 PDT
Yeah, I'm also surprised that the CC environment variable wasn't taking care of this.
Darin Adler
Comment 6 2013-06-16 08:42:11 PDT
(In reply to comment #4) > The 'CC' environment variable should have been set to the correct compiler by the "Generate Derived Sources" build phase script (unless you were running the scripts outside of an Xcode build). I was. This is to make run-bindings-tests work. Sorry, I should have said that. > In the case of running the scripts outside of Xcode, the proper way to fix this for Mac OS X is to use 'xcrun' to find 'cc', which maps to the default compiler for the specified SDK (or the "current" SDK on Mac OS X) rather than to hard-code paths that assume the "CLTools" package is installed with Xcode (which isn't always true): > > xcrun -find cc We could put a Mac-specific fix like that into these two perl scripts, or add Mac-specific code to run-bindings-tests so it sets CC. Do you have a preference, Dave?
Note You need to log in before you can comment on or make changes to this bug.