summaryrefslogtreecommitdiffstats
path: root/tools/clang/scripts
Commit message (Collapse)AuthorAgeFilesLines
* clang: Let update.sh clobber gch files in ninja build directories as well.thakis@chromium.org2012-01-291-0/+6
| | | | | | | | | | BUG=none TEST=ninja build just works after clang rolls. TBR=mark Review URL: https://chromiumcodereview.appspot.com/9225048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119644 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 148039:148911thakis@chromium.org2012-01-291-1/+1
| | | | | | | | | | BUG=97532,111806,111208 (maybe?) TEST=none TBR=hans Review URL: http://codereview.chromium.org/9297028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119637 0039d316-1c4b-4281-b951-d872f2087c98
* Detect whether we're in a WebKit checkout to find the correct make output ↵jochen@chromium.org2012-01-191-1/+9
| | | | | | | | | | | directory BUG=WK-75622 TEST=create a WebKit/chromium/mac/make checkout, update clang, should delete GCH fiels Review URL: https://chromiumcodereview.appspot.com/9231007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118288 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 147434:148039thakis@chromium.org2012-01-141-1/+1
| | | | | | | | | | | BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/9174009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117801 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 147225:147434thakis@chromium.org2012-01-021-4/+4
| | | | | | | | | | | | | | Also set MACOSX_DEPLOYMENT_TARGET to 10.5, so that the mac binaries don't require 10.6. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/9069004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116110 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 146361:147225thakis@chromium.org2011-12-241-1/+1
| | | | | | | | | | BUG=107412 TEST=none TBR=hans Review URL: http://codereview.chromium.org/9007051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115755 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 145842:146361thakis@chromium.org2011-12-121-1/+1
| | | | | | | | | | | | New in this roll: ASan! (for mac and linux64 for now) BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8918007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114055 0039d316-1c4b-4281-b951-d872f2087c98
* clang packaging script: Build compiler-rt, package ASan.thakis@chromium.org2011-12-082-0/+18
| | | | | | | | | | | | This has no effect until the next clang roll. On linux, only 64bit is supported for now. BUG=none TEST=`clang -faddress-sanitizier test.c` works. Running the generated a.out reports memory errors if test.c contained any. TBR=kcc Review URL: http://codereview.chromium.org/8852008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113546 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 145240:145842thakis@chromium.org2011-12-061-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8817002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113148 0039d316-1c4b-4281-b951-d872f2087c98
* Make as many URLs as possible be HTTPS.palmer@chromium.org2011-12-012-3/+3
| | | | | | | We're downloading code here, after all! Review URL: http://codereview.chromium.org/8772015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112547 0039d316-1c4b-4281-b951-d872f2087c98
* Force annotation of overridden methods with OVERRIDE.avi@chromium.org2011-11-291-2/+1
| | | | | | | | | BUG=104314 TEST=green builds Review URL: http://codereview.chromium.org/8727007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111969 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/tools/maruel@chromium.org2011-11-291-6/+12
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=timurrrr@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 145052:145240thakis@chromium.org2011-11-281-1/+1
| | | | | | | | | | | | | | Notable in this roll is that it adds support for mandatory OVERRIDEs on overridden functions in chromium code to the chromium style plugin. The warning is currently behind a flag. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8718015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111776 0039d316-1c4b-4281-b951-d872f2087c98
* Extend Clang plugin to warn on missing OVERRIDE.avi@chromium.org2011-11-281-1/+2
| | | | | | | | | BUG=104314 TEST=none Review URL: http://codereview.chromium.org/8586037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111712 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 144547:145052thakis@chromium.org2011-11-221-1/+1
| | | | | | | | | | | | Notable in this roll: clang now understands -faddress-sanitizer. The runtime library isn't checked in yet, so it's not all that useful yet. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8562011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111203 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 143497:144547thakis@chromium.org2011-11-151-1/+1
| | | | | | | | | | | | | | | Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). Previous attempt at http://codereview.chromium.org/8538027/ BUG=104323 TEST=none TBR=hans Review URL: http://codereview.chromium.org/8572021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110184 0039d316-1c4b-4281-b951-d872f2087c98
* Point out that reverting clang rolls is safe.thakis@chromium.org2011-11-151-0/+1
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8468008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110126 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109982 - Roll clang 143497:144521joi@chromium.org2011-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | Reason: Was causing Clang crashes on Google Chrome Mac official builder, e.g. http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Mac/builds/5731) Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8538027 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/8574008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110101 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 143497:144521thakis@chromium.org2011-11-141-1/+1
| | | | | | | | | | | | Linux directory detection is now done in the driver instead of in the frontend, so let the plugin test script invoke the driver instead of clang -cc1 (else it won't find <string> etc on linux). BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8538027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109982 0039d316-1c4b-4281-b951-d872f2087c98
* Roll clang 142926:143497thakis@chromium.org2011-11-051-1/+1
| | | | | | | | | | | | | | A notable change is that debugging information now uses indirect strings, which reduces binary size by ~50% on linux (still 2x the size of the gcc output though.) BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8477010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108766 0039d316-1c4b-4281-b951-d872f2087c98
* Get Clang revision from a file rather than grepping DEPSmcgrathr@chromium.org2011-11-041-26/+12
| | | | | | | | | | | | | | | | | | | | | | | Grepping the clang_revision line out of DEPS is ugly. It requires other repositories to use the File() syntax in their DEPS just to get the chromium/src/DEPS file so that tools/clang/scripts/update.sh can grep it. File() is de facto deprecated and it's not supported by the .DEPS.git conversion tools, so this is a barrier to converting dependent repositories such as native_client, as well as being ugly. Instead, just keep the Clang revision number in the script that uses it. When this lands, http://code.google.com/p/chromium/wiki/UpdatingClang must be updated to describe updating the tools/clang/scripts/update.sh script. BUG= http://code.google.com/p/chromium/issues/detail?id=102682 TEST= ran tools/clang/scripts/update.sh successfully R=thakis@chromium.org,nsylvain@google.com Review URL: http://codereview.chromium.org/8438021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108736 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Let `gclient sync` autoupdate clang on linux if clang has been ↵thakis@chromium.org2011-11-011-2/+7
| | | | | | | | | | | | | | | downloaded before. This way, clang is autoupdated for people who use clang on linux, but people and bots who don't use it are still not affected BUG=none TEST=linux clang users stop complaining to me about things that were fixed long ago. Review URL: http://codereview.chromium.org/8429020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108118 0039d316-1c4b-4281-b951-d872f2087c98
* Delete some code that is no longer neededthakis@chromium.org2011-10-311-6/+0
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/8429021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108030 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Let `update.sh --run-tests` run llvm & clang unit tests; let ↵thakis@chromium.org2011-10-222-1/+4
| | | | | | | | | | | | package.sh run tests. BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8369020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106823 0039d316-1c4b-4281-b951-d872f2087c98
* Don't let update.sh print a warning message about xcodebuild if ↵thakis@chromium.org2011-10-161-1/+2
| | | | | | | | | | | | GYP_GENERATORS=make. BUG=none TEST=none Review URL: http://codereview.chromium.org/8308004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105702 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 140930:142072thakis@chromium.org2011-10-151-1/+11
| | | | | | | | | | | | | | Also add a --run-tests parameter to update.sh The plugin change is required due to http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20111010/047769.html BUG=none TEST=none TBR=hans Review URL: http://codereview.chromium.org/8247005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105679 0039d316-1c4b-4281-b951-d872f2087c98
* OpenBSD and FreeBSD fixes for base.mark@chromium.org2011-10-131-1/+1
| | | | | | | | | | | | | OpenBSD and FreeBSD need -I/usr/local/include for <execinfo.h>. Use !#/usr/bin/env bash because on !linux it's not located there. Patch by Robert Nagy <robert@openbsd.org> BUG=none TEST=none Review URL: http://codereview.chromium.org/8228005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105257 0039d316-1c4b-4281-b951-d872f2087c98
* clang: Let update.sh look in chromium_deps/DEPS if it exists.thakis@chromium.org2011-10-111-0/+4
| | | | | | | | | | | | For bare webkit checkouts. BUG=97043 TEST=none Review URL: http://codereview.chromium.org/8220021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104834 0039d316-1c4b-4281-b951-d872f2087c98
* clang updater: Prefer curl over wget on linux if installed.thakis@chromium.org2011-09-241-4/+11
| | | | | | | | | | | | BUG=97288 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102596 Review URL: http://codereview.chromium.org/8015020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102647 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 102596 (which has no -s on linux apparently) - clang updater: Prefer ↵thakis@chromium.org2011-09-241-11/+4
| | | | | | | | | | | | | | | curl over wget on linux if installed. BUG=97288 TEST=none Review URL: http://codereview.chromium.org/8015020 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/8028013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102631 0039d316-1c4b-4281-b951-d872f2087c98
* clang updater: Prefer curl over wget on linux if installed.thakis@chromium.org2011-09-231-4/+11
| | | | | | | | | | BUG=97288 TEST=none Review URL: http://codereview.chromium.org/8015020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102596 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 102346 (already landed in 102342. It's a great CL, but having it in ↵thakis@chromium.org2011-09-221-6/+0
| | | | | | | | | | | | | | | the tree once is enough.) - clang downloader: Clean up temporary files on the bots. BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7994010 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/7970013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102349 0039d316-1c4b-4281-b951-d872f2087c98
* clang downloader: Clean up temporary files on the bots.thakis@chromium.org2011-09-221-0/+6
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7994010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102346 0039d316-1c4b-4281-b951-d872f2087c98
* clang downloader: Clean up temporary files on the bots.thakis@chromium.org2011-09-221-0/+6
| | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7994010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102342 0039d316-1c4b-4281-b951-d872f2087c98
* clang updater: Fix error-case regression introduced in r101931thakis@chromium.org2011-09-201-2/+2
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7983009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101998 0039d316-1c4b-4281-b951-d872f2087c98
* Download clang-xxx.tgz into /tmp instead of the current directory.thakis@chromium.org2011-09-201-4/+9
| | | | | | | | | | BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7931022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101931 0039d316-1c4b-4281-b951-d872f2087c98
* Switch clang download to https.thakis@chromium.org2011-09-191-1/+1
| | | | | | | | | | | | About 4% slower than downloading over http in my tests. BUG=96722 TEST=none Review URL: http://codereview.chromium.org/7931021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101742 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Warn people on Xcode <= 3.2.2 that they should upgrade.thakis@chromium.org2011-09-151-0/+8
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7904019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101316 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Clobber pch files after clang updates.thakis@chromium.org2011-09-151-0/+18
| | | | | | | | | BUG=96522 TEST=Mark stops seeing pch errors after clang updates Review URL: http://codereview.chromium.org/7890052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101237 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Let `gclient runhooks` warn about predictive compilation in xcode3thakis@chromium.org2011-09-141-7/+26
| | | | | | | | | | | | | | | | | | | clang doesn't support predictive compilation, and upstream doesn't want to add support for it, so tell people to disable predictive compilation in xcode instead. Do this every time `gclient runhooks` runs, no matter if clang is up-to-date or not. Running `xcodebuild -version` sometimes takes a second or time, but most of the time it's quick, and it's very fast compared to gyp anyway. BUG=96315 TEST=`gclient runhooks`, note warning message. Do what message says, `gclient runhooks` again, note that no warning message shows up. TBR=mark Review URL: http://codereview.chromium.org/7889022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101168 0039d316-1c4b-4281-b951-d872f2087c98
* Ugly workaround that makes `gclient runhooks` output un-ugly.thakis@chromium.org2011-09-041-1/+13
| | | | | | | | | | BUG=95350 TEST=`gclient runhooks` on mac looks "normal" when clang is downloaded. TBR=maruel Review URL: http://codereview.chromium.org/7835017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99580 0039d316-1c4b-4281-b951-d872f2087c98
* Let `gclient runhooks` pull clang on mac.thakis@chromium.org2011-09-031-0/+17
| | | | | | | | | | | | | | | | If nothing needs to be done, the script takes 0s to run. If a new version is available, it's downloaded from the web. It's a 13MB download, which takes ~20s. This has to be paid ~once/week by all mac devs, but since clang compiles faster than gcc this is actually a big speed-up. BUG=none TEST=none Review URL: http://codereview.chromium.org/7835005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99507 0039d316-1c4b-4281-b951-d872f2087c98
* clang update script: Remove --lldb, add --mac-only, --force-local-buildthakis@chromium.org2011-09-021-38/+37
| | | | | | | | | | | | | | | | | | lldb doesn't build on linux, and is difficult to build on mac and ships with xcode 4 anyway (_and_ isn't all that good), so remove the option for it for now. Add a --mac-only option that makes the script exit early on non-mac systems (to be used to add a gclient hook that pulls clang for all devs on mac). Add a --force-local-build option that can be used to hack on clang. BUG=none TEST=none Review URL: http://codereview.chromium.org/7826023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99419 0039d316-1c4b-4281-b951-d872f2087c98
* clang: add an option to update.sh to pull lldb as wellevan@chromium.org2011-09-011-0/+29
| | | | | | Review URL: http://codereview.chromium.org/7741026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99235 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 138187:138188thakis@chromium.org2011-08-272-1/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | (Rolling just 1 revision because something farther on seems to tickle an ld crash, but I'd like to get the rest of this CL in.) Also pass --disable-threads and --disable-pthreads to configure, for goma. Also modify the script to try to download prebuilt binaries first. This is faster, and makes sure the bots use the exact same binary as goma. The binaries are downloaded from http://commondatastorage.googleapis.com/chromium-browser-clang/index.html Also add a script that packages a clang build up into a tgz for uploading with gsutil, based on code by ukai@. Finally, if the svn checkout fails, remove the destination directory and try again (for bots that have a checkout from before we had an internal llvm svn mirror). BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98416 Review URL: http://codereview.chromium.org/7741039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98541 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r98416 "roll clang 138187:138500"maruel@chromium.org2011-08-262-83/+1
| | | | | | | | | | | | | Causes segfault in clang when linking in release. TBR=thakis@chromium.org BUG= TEST= NOTRY=true Review URL: http://codereview.chromium.org/7753033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98423 0039d316-1c4b-4281-b951-d872f2087c98
* roll clang 138187:138500thakis@chromium.org2011-08-262-1/+83
| | | | | | | | | | | | | | | | | | | | | | Also pass --disable-threads and --disable-pthreads to configure, for goma. Also modify the script to try to download prebuilt binaries first. This is faster, and makes sure the bots use the exact same binary as goma. The binaries are downloaded from http://commondatastorage.googleapis.com/chromium-browser-clang/index.html Also add a script that packages a clang build up into a tgz for uploading with gsutil, based on code by ukai@. Finally, if the svn checkout fails, remove the destination directory and try again (for bots that have a checkout from before we had an internal llvm svn mirror). BUG=none TEST=none Review URL: http://codereview.chromium.org/7741039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98416 0039d316-1c4b-4281-b951-d872f2087c98
* Make the clang update script really fast if the right revision's already there.thakis@chromium.org2011-08-181-11/+27
| | | | | | | | | | | | This way, people can add it to their DEPS hooks without going crazy. BUG=none TEST=none TBR=mark (commit-bot please accept "LG") Review URL: http://codereview.chromium.org/7625002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97369 0039d316-1c4b-4281-b951-d872f2087c98
* Build clang --without-llvmgcc and --without-llvmgxx.mark@chromium.org2011-08-151-1/+4
| | | | | | | | | | | | | | | | | Without this, configure finds llvm-gcc and llvm-g++ if already installed on the system, which will likely be out of date relative to the LLVM being built. This causes "make check" to run additional tests using the system llvm-gcc and llvm-g++. Some of these tests will fail. Since we don't build or care about llvm-gcc, it's pointless to run these tests, and it's scary to run your compiler's test suite and see failures. BUG=none TEST=cd third_party/llvm-build; make check-all; make unittests for i in tools/clang/unittests/*/Release+Asserts/*Tests; do "${i}"; done Review URL: http://codereview.chromium.org/7646012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96744 0039d316-1c4b-4281-b951-d872f2087c98
* Check out clang from $LLVM_URL if it's set.thakis@chromium.org2011-08-061-6/+5
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7584023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95744 0039d316-1c4b-4281-b951-d872f2087c98