Mike Hommey
b577f7e4fc
Bug 1488307 - Build the LLVM gold plugin. r=mshal
...
As much as it's tempting to use LLD for LTO, it still causes some
subtle problems with the build, and it's still better to keep using
BFD ld for the time being. Doing so requires the gold plugin, which
only requires to pass cmake the directory where the binutils headers
are, and they are part of the gcc toolchain headers.
Differential Revision: https://phabricator.services.mozilla.com/D4896
2018-09-05 09:36:42 +09:00
Mike Hommey
4b3aecfed0
Backout changeset c2b5cf7bde83 (bug 1488307) to give time to toolchains to build without blocking other landings.
2018-09-05 06:50:14 +09:00
Mike Hommey
ff60630d1a
Bug 1488307 - Build the LLVM gold plugin. r=mshal
...
As much as it's tempting to use LLD for LTO, it still causes some
subtle problems with the build, and it's still better to keep using
BFD ld for the time being. Doing so requires the gold plugin, which
only requires to pass cmake the directory where the binutils headers
are, and they are part of the gcc toolchain headers.
Differential Revision: https://phabricator.services.mozilla.com/D4896
2018-09-05 06:50:13 +09:00
Andi-Bogdan Postelnicu
f138da3f76
Bug 1466427 - Migrate clang-tidy package from 5.0.1 to 7.0.0-rc2. r=glandium,janx
...
Differential Revision: https://phabricator.services.mozilla.com/D3980
2018-08-24 12:39:58 +00:00
Mike Hommey
f712fd11d1
Bug 1479800 - Build 32-bits compiler-rt for 64-bits clang-cl. r=dmajor
2018-08-16 10:31:03 +09:00
arthur.iakab
f143071293
Backed out 2 changesets (bug 1479800, bug 1483779)for frequent cgx and arm64 failures
...
Backed out changeset 5fcbe08fb321 (bug 1483779 )
Backed out changeset dccd5299c5ad (bug 1479800)
2018-08-17 09:50:30 +03:00
Mike Hommey
91acd5d792
Bug 1479800 - Build 32-bits compiler-rt for 64-bits clang-cl. r=dmajor
2018-08-17 10:19:51 +09:00
Mike Hommey
6c27c2fbba
Backout changeset 1e71e61d1623 (bug 1479800) to give time to toolchains to build without blocking other landings.
2018-08-17 07:11:45 +09:00
Mike Hommey
eef6e92114
Bug 1479800 - Build 32-bits compiler-rt for 64-bits clang-cl. r=dmajor
2018-08-17 07:10:07 +09:00
Tom Ritter
3c85735610
Bug 1479878 Add a --skip-revert option to build-clang.py r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D2580
2018-08-15 06:13:14 +00:00
Mike Hommey
75c5611cb1
Bug 1481989 - Copy 32-bits libraries from gcc to clang. r=froydnj
...
We already copy the 64-bits libraries, but don't copy the 32-bits
libraries, which prevents building for linux32 by default.
Incidentally, this also makes the clang build system build the 32-bits
compiler-rt libraries, allowing e.g. 32-bits PGO.
2018-08-10 05:54:07 +09:00
Daniel Varga
ea0989b193
Backed out 3 changesets (bug 1480631) for failure at /home/cltbld/workspace/build/tests/talos/talos/run_tests.py
...
Backed out changeset ed7dba433629 (bug 1480631)
Backed out changeset dd64a5e6d4df (bug 1480631)
Backed out changeset 910a805c960d (bug 1480631)
2018-08-09 01:46:40 +03:00
Mike Hommey
20db58ec38
Fix up clang-tidy after bug 1480631. r=bustage
2018-08-09 06:37:11 +09:00
Mike Hommey
dfeaa4752e
Bug 1480631 - Copy 32-bits libraries from gcc to clang. r=froydnj
...
We already copy the 64-bits libraries, but don't copy the 32-bits
libraries, which prevents building for linux32 by default.
Incidentally, this also makes the clang build system build the 32-bits
compiler-rt libraries, allowing e.g. 32-bits PGO.
2018-08-09 06:08:12 +09:00
Christian Holler
924b3c7658
Bug 1426176 - Add symbols file for Clang ASan runtime on Windows. r=ted
...
MozReview-Commit-ID: 4P3mwZNP8cY
2018-07-26 11:16:50 +02:00
Cosmin Sabou
5e57ad14db
Backed out changeset df39b3369446 (bug 1426176) for causing toolchains clang bustages. CLOSED TREE
2018-07-31 00:48:47 +03:00
Christian Holler
0010c130f3
Bug 1426176 - Add symbols file for Clang ASan runtime on Windows. r=ted
...
MozReview-Commit-ID: 4P3mwZNP8cY
2018-07-26 11:16:50 +02:00
Tom Ritter
3a08e75d1e
Bug 1467897 Allow local runs of build-clang by providing a --base-dir option r=glandium
...
MozReview-Commit-ID: Gd9W1DV5g1x
2018-06-05 14:01:59 -05:00
Nathan Froyd
5a9b972ebc
Bug 1470449 - silence some warnings during clang bootstrap; r=chmanchester
...
This change makes interactive usage slightly nicer and logs somewhat shorter.
2018-06-26 12:02:36 -04:00
Sylvestre Ledru
b2210f87b1
bug 1463425 - Fix flake8/pep8 issue by hand in build/ r=gps
...
MozReview-Commit-ID: AZdcEWyVV6e
2018-05-21 23:58:19 +02:00
Tom Ritter
b1612a4df5
Bug 1458897 Fix svn revert in build-clang so one can re-run it successfully r=glandium
...
svn revert requires a path, and does not take a revision. This isn't an
issue on build machines because we do a fresh checkout every time.
But if you're trying to run build-clang locally, with existing checkouts,
it will:
1) successfully svn update
2) run svn revert, saying "Skipped <rev>"
(except you don't see it because of -q)
3) svn revert returns a successfull eror code
4) patch fails because the file was never reverted and it attempts
to re-apply the patch
Also I think the revert command needs to come first.
MozReview-Commit-ID: 4OfrJNZwJNU
2018-05-03 09:14:12 -05:00
Ryan VanderMeulen
39911debab
Bug 1424281 - Use Visual Studio 2017 15.6.0 for Windows builds. r=froydnj
2018-03-12 19:24:44 -04:00
Jesse Schwartzentruber
855f59b761
Bug 1425406 - Add a linux64 clang 6 (pre) toolchain with the macosx64 native sanitizer dylibs. r=froydnj
...
MozReview-Commit-ID: Ig9xpBDcjNu
2018-02-08 16:58:12 -05:00
Nathan Froyd
246d18bd6f
Bug 1435502 - add AArch64 support to clang builds; r=chmanchester
2018-02-05 14:25:43 -05:00
Andi-Bogdan Postelnicu
4dc16add91
Bug 1429015 - Add clang-format-diff to the clang-tidy build generated by toolchains. r=sylvestre
...
MozReview-Commit-ID: FjJqef78wa3
2018-01-09 13:27:39 +02:00
David Major
56e77b52b9
Bug 1421404: Add lld to the build-clang task. r=glandium
2017-12-01 11:12:07 -05:00
Marco Castelluccio
4776d5d851
Bug 1415568 - Support applying patches to Windows clang. r=froydnj
2017-11-08 17:23:12 +01:00
Gregory Szorc
40d0844f17
Bug 1414558 - Build Clang toolchain on a Docker volume; r=froydnj
...
Before, the build root was not in a Docker cache or volume. With
current Docker works, that meant AUFS. We know AUFS is slow under
I/O load and can cause random failures due to missing data after
writes.
This commit changes the build root to a known Docker volume, which
will be backed by EXT4 and won't have the problems of AUFS.
MozReview-Commit-ID: 6WOH0yednAv
2017-11-06 11:45:17 -08:00
David Major
57a32db44f
Bug 1412952 - Build clang-cl itself with VS2017. r=froydnj
2017-11-03 12:29:58 -04:00
Sylvestre Ledru
69d68b3c4f
Bug 1406650 - Make build/*.py and a few other files flake8 compatible and add them to the list of files to check r=chmanchester
...
MozReview-Commit-ID: icmFJtbWdN
2017-10-07 16:45:22 +02:00
Sylvestre Ledru
70ed5b7f7c
Bug 1406310 - Also ship clang-format in the clang-tidy build job r=glandium
...
MozReview-Commit-ID: 4C992sYlMo2
2017-10-06 09:50:48 +02:00
Boris Zbarsky
6dab2eb63c
Bug 1406140 followup. Fix the formatting so the CLOSED TREE is less red.
...
MozReview-Commit-ID: LAskse3XmLN
2017-10-06 09:54:31 -04:00
Sylvestre Ledru
bfef6b987a
Bug 1406140 - build-clang.py: flake8 consitency r=andi
...
MozReview-Commit-ID: 6w1QesvVyyc
2017-10-05 21:03:19 +02:00
Sylvestre Ledru
711d48de35
Bug 1406140 - Simplify a bit the code to have a single call to build_tar_package r=andi
...
MozReview-Commit-ID: 9yGw8bJhQwR
2017-10-05 21:00:25 +02:00
Andi-Bogdan Postelnicu
3506ac4a96
Bug 1405602 - Add clang-apply-replacements to the clang-tidy build generated by toolchains. r=ehsan
...
MozReview-Commit-ID: 1BT2ukzLoC3
2017-10-04 18:27:02 +03:00
Ting-Yu Chou
b26dd7ab45
Bug 1385743 - Use copy_tree() to copy directory recursively instead. r=Ehsan
...
shutil.copy2() will fail if the destination directory doesn't exist.
Switch to copy_tree() instead so we don't need to worry about the
error cases of copy2() and copytree().
MozReview-Commit-ID: 3kHfgL57KfX
2017-08-17 10:36:15 +08:00
Mike Hommey
f55cec3f74
Bug 1386588 - Always print out the commands run by the clang build job. r=gps,a=KWierso
...
Not doing so makes debugging harder, for no added value.
2017-08-03 08:14:02 +09:00
Ehsan Akhgari
a4864c05d9
Bug 1336149 - Clean up the patches section in build-clang.py config files; r=froydnj
...
These config files don't need to declare patches for other platforms.
Therefore, this patch makes "patches" a simple array of patches to be
applied.
2017-02-03 10:21:25 -05:00
Ehsan Akhgari
777a5c5252
Bug 1331957 - Part 11: Specify the path to the cross-compiler toolchain libtool for OS X static analysis builds; r=froydnj
2017-02-03 10:19:44 -05:00
Ehsan Akhgari
6e00601f68
Bug 1331957 - Part 9: Upgrade cctools used for building clang on OS X for ld 264.3.102; r=froydnj
2017-02-03 10:19:33 -05:00
Ehsan Akhgari
9e439365dc
Bug 1331957 - Part 4: Allow specifying a custom assembler and pass the right flags to it when cross-compiling; r=froydnj
2017-02-03 10:19:06 -05:00
Iris Hsiao
1f83a308ef
Backed out 14 changesets (bug 1331957, bug 1336149) for OS X 10.7 debug static analysis build bustage
...
Backed out changeset a01bead75258 (bug 1336149)
Backed out changeset 9a64d3102f6b (bug 1331957)
Backed out changeset a10f7732a754 (bug 1331957)
Backed out changeset 82c98214febe (bug 1331957)
Backed out changeset f74c7a543525 (bug 1331957)
Backed out changeset 6631f3582920 (bug 1331957)
Backed out changeset ccefeba51cf6 (bug 1331957)
Backed out changeset a84b26a07369 (bug 1331957)
Backed out changeset fc0b3a0ad1e5 (bug 1331957)
Backed out changeset bbcae89fd7c2 (bug 1331957)
Backed out changeset ffd70d960b9f (bug 1331957)
Backed out changeset a53ecc295eae (bug 1331957)
Backed out changeset d44a0be29686 (bug 1331957)
Backed out changeset a01a373da6a8 (bug 1331957)
2017-02-03 11:16:08 +08:00
Ehsan Akhgari
ee94032ecd
Bug 1336149 - Clean up the patches section in build-clang.py config files; r=froydnj
...
These config files don't need to declare patches for other platforms.
Therefore, this patch makes "patches" a simple array of patches to be
applied.
2017-02-02 20:21:02 -05:00
Ehsan Akhgari
e76ca01a99
Bug 1331957 - Part 11: Specify the path to the cross-compiler toolchain libtool for OS X static analysis builds; r=froydnj
2017-02-02 20:20:58 -05:00
Ehsan Akhgari
5eeda759b8
Bug 1331957 - Part 9: Upgrade cctools used for building clang on OS X for ld 264.3.102; r=froydnj
2017-02-02 20:20:56 -05:00
Ehsan Akhgari
b6761ec9b3
Bug 1331957 - Part 4: Allow specifying a custom assembler and pass the right flags to it when cross-compiling; r=froydnj
2017-02-02 20:20:49 -05:00
Nathan Froyd
a6bc6c6c50
Bug 1330082 - factor out a checkout_or_update function for build-clang.py; r=ehsan
...
It's just silly to have the same code repeated multiple times; this is
the sort of thing functions were invented for.
2017-01-20 12:54:56 -05:00
Ehsan Akhgari
b5474aa66c
Bug 1332022 - Part 1: Use the libc++ headers from the libc++ project being built; r=mystor
...
LLVM relies on new libc++ features that may not be present in
the system headers.
2017-01-18 23:04:10 -05:00
Ehsan Akhgari
717965ad0c
Bug 1329307 - Only package the clang-tidy binaries for the clang-tidy builds; r=mystor
2017-01-06 16:02:23 -05:00
Ehsan Akhgari
f6ed9f6b09
Bug 1329306 - Also clobber the CMakeFiles directory; r=mystor
...
This directory can include variables for the toolchain path names,
for example, which are different from run to run on Windows TaskCluster
workers.
2017-01-06 16:02:23 -05:00