Set CC to clang when GYP_DEFINES=clang=1.
This makes it a lot easier to build with clang, since setting the GYP_DEFINES is now the only thing one has to do. The rest is set automatically. In preparation of setting clang=1 in build/common.gypi on mac. Depends on http://codereview.chromium.org/7779041/ . Idea and xcode part of the patch by Mark. BUG=none TEST= Set GYP_DEFINES=clang=1, create xcode and make projects 1.) Building with Xcode 3.2 uses clang 2.) Building with Xcode 4 gives functional fixits 3.) Building with make uses clang both for host and target 4.) Building with xcodebuild and goma still works on mac 5.) Building with make and goma still works Review URL: http://codereview.chromium.org/7779039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99835 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment