Commit Graph
3728 Commits
Author SHA1 Message Date
Mike Hommey 67b22690b1 Bug 1569075 - Rename FileAvoidWrite mode argument. r=chmanchester
It causes confusion because it's the mode used to _read_ the overwritten
file. Make that more obvious by renaming to `readmode`.

Differential Revision: https://phabricator.services.mozilla.com/D39445
2019-07-30 21:03:12 +00:00
Andi-Bogdan Postelnicu 6ff7769094 Bug 1569880 - Report build errors during review-phase for C/C++ code. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D39843
2019-07-30 07:42:18 +00:00
Bastien Abadie c4ceabe37d Bug 1568771 - Output paths relative to repository in ./mach static-analysis check-coverity, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39306
2019-07-30 06:44:52 +00:00
James Willcox 435ee6e177 Bug 1561323 - Fix spurious reconfigure problem with debug builds r=nalexander,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39701
2019-07-29 16:49:17 +00:00
Mike Hommey 9268e0104a Bug 1568713 - Do some sanity checks on FileAvoidWrite inputs. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39271
2019-07-25 22:49:21 +00:00
Bastien Abadie 31ad3d3752 Bug 1568535 - Output relative paths in mach static-analysis check, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39197
2019-07-25 08:50:50 +00:00
Bastien Abadie 8a1cfc8b0f Bug 1568558 - Output paths relative to repository in ./mach clang-format, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D39211
2019-07-25 08:50:33 +00:00
Mike Shal 1def64128d Bug 1567619 - Avoid double stat in preprocessed file installs; r=glandium
Followup to bug 1566044.

Differential Revision: https://phabricator.services.mozilla.com/D38763
2019-07-23 03:03:36 +00:00
Mike Hommey 5c11694bb2 Bug 1564216 - Require clang 5 for OSX builds. r=froydnj
There is less incentive to keep things building with older versions of
clang for OSX builds, and we're going to require an objective-C feature
that was added in clang 5.

Differential Revision: https://phabricator.services.mozilla.com/D38581
2019-07-22 21:31:39 +00:00
Mike Shal 22b503fc69 Bug 1566044 - Missing inputs in install manifests should trigger updates; r=nalexander
The preprocessed install manifest code uses a Makefile dependency file
to list inputs. If one of the inputs was missing (due to a file removal
or rename), an incremental build would fail until clobbered. We should
treat a missing input as simply being out-of-date and continue
processing.

Differential Revision: https://phabricator.services.mozilla.com/D38576
2019-07-18 22:40:57 +00:00
Andrew Halberstadt 42eaab1aca Bug 1473498 - [mach] Fix Py3 compatibility issues in telemetry.py r=firefox-build-system-reviewers,chmanchester
Depends on D36104

Differential Revision: https://phabricator.services.mozilla.com/D38193
2019-07-16 20:53:18 +00:00
Andrew Halberstadt 3136a6824c Bug 1473498 - Fix Py3 compatibility issue in python/mozbuild/mozbuild/testing.py r=nalexander
Depends on D37763

Differential Revision: https://phabricator.services.mozilla.com/D37764
2019-07-16 15:14:49 +00:00
Tom Prince b48289cc34 Bug 1458385: Generate MARs with the appropriate channel-id explicitly; r=nthomas
Rather than relying on the mar-channel-id set in the `mar` binary, set the channel
explicitly from taskcluster. This allows us to re-use the `mar` binary between
builds/channels.

Differential Revision: https://phabricator.services.mozilla.com/D37481
2019-07-11 16:40:13 +00:00
Andrew Halberstadt de1233b5da Bug 1563797 - Use 'backports.shutil_which' instead of 'which' in the build system r=firefox-build-system-reviewers,chmanchester
Credit: Callek for figuring out an issue in 'make check' making the binary
absolute in mozbuild.base.

Differential Revision: https://phabricator.services.mozilla.com/D37319
2019-07-11 14:04:39 +00:00
Victor Porof d2051718a8 Bug 1564824 - Format source fails with Prettier on patches with moved files where the original directory also does not exist, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D37537
2019-07-10 11:15:18 +00:00
Mike Hommey e4028291a0 Bug 1563158 - Properly handle imply_option dependency loops when when is involved. r=chmanchester
This is an extension of the relaxation added in bug 1529799.

Differential Revision: https://phabricator.services.mozilla.com/D36716
2019-07-09 22:04:01 +00:00
Makoto Kato 2dea2ba81d Bug 1562389 - Better detect non-clang-cl native windows clang. r=glandium
When building Gecko/Android/aarch64 on Windows, `--target` parameter may not be incorrect value. Although `check_compiler`'s `info` is target compiler, clang on Windows is always detected as `clang-cl`, not `clang`.

```
c:/Users/mkato/.mozbuild/clang/bin/clang.exe -E  -dM - < /dev/null
...
#define _MSC_VER 1916
```

So even if using clang on Windows, not clang-cl, we should detect as 'clang' correctly

Differential Revision: https://phabricator.services.mozilla.com/D36422
2019-07-08 10:35:40 +00:00
Justin Wood bc39d96d4f Bug 1559975 - Make python/mozbuild lint with 'py2' and 'py3' r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D36090
2019-07-05 14:36:43 +00:00
Victor Porof 6369a27507 Bug 1556393 - Pre 0 (m-c): Create a simple Prettier command for running format-source, r=andi
Differential Revision: https://phabricator.services.mozilla.com/D36720
2019-07-04 14:50:20 +02:00
Andi-Bogdan Postelnicu e43b377df2 Bug 1563326 - for code-analysis target do not globally import PackageFrontend. r=sylvestre
By globally importing PackageFrontend from the globe-analysis module we break the logger for
the PackageFrontend package.

Differential Revision: https://phabricator.services.mozilla.com/D36887
2019-07-04 11:42:16 +00:00
Mike Hommey 66beaca525 Bug 1560044 - Always use a SDK path on macOS. r=nalexander
The SDK headers may not be installed in /usr/include. The usual response
has been to have people run e.g. `open
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg`
which is not really sustainable.

This makes builds that happen on a macOS host try to detect their SDK
and use that as a default for --with-macos-sdk, which has the side
effect of enabling the SDK version check in that configuration.

Differential Revision: https://phabricator.services.mozilla.com/D36558
2019-07-03 22:11:05 +00:00
Ryan VanderMeulen f7ff44e4b3 Bug 1563038 - Add more trees to the candidate tree list for artifact builds. r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D36676
2019-07-02 21:58:21 +00:00
Andi-Bogdan Postelnicu 257ab2b875 Bug 1559740 - add separate modules for build, static-analysis and artifacts. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D36479
2019-07-01 14:02:20 +00:00
Sylvestre Ledru 5f0d1527ba Bug 1559740 - Move the clang-{format,tidy} and infer declarations into a separate directory r=andi
Differential Revision: https://phabricator.services.mozilla.com/D35187
2019-07-01 13:57:18 +00:00
Samuel Thibault 5557b8d890 Bug 1543725 Add marionette support to thunderbird r=ato,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D27102
2019-06-27 14:09:05 +00:00
Kartikaya Gupta f7dce873de Bug 1558598 - Force WebRender on or off in the gtest harness. r=ahal
This covers the local and remote gtests, as well as the mach command.

Differential Revision: https://phabricator.services.mozilla.com/D35852
2019-06-29 09:48:16 +00:00
championshuttler 50f426a7be Bug 1536103 - Fix various Sphinx Warning in 'mach doc' (3). r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35314
2019-06-26 20:00:31 +00:00
championshuttler 3ab272ae1a Bug 1536103 - Fix Sphinx Warning - Unexpected indentation (1). r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35304
2019-06-28 18:33:19 +00:00
Cosmin Sabou 0fafa2c176 Backed out 3 changesets (bug 1559740) for linting errors and android bustages. CLOSED TREE
Backed out changeset 39db36060b8a (bug 1559740)
Backed out changeset df14ac0c2421 (bug 1559740)
Backed out changeset 089e04f53971 (bug 1559740)
2019-06-28 19:40:13 +03:00
Cosmin Sabou 288f23f372 Bug 1559740 - Ride along - add a missing import. r=Sylvestre 2019-06-28 18:15:31 +03:00
Sylvestre Ledru 538b0cbb43 Bug 1559740 - Ride along - flake8+black+codespell on python/mozbuild/mozbuild/code-analysis/mach_commands.py r=andi
Depends on D35187

Differential Revision: https://phabricator.services.mozilla.com/D35188
2019-06-28 07:40:18 +00:00
Sylvestre Ledru 8744140ee5 Bug 1559740 - Move the clang-{format,tidy} and infer declarations into a separate directory r=andi
Differential Revision: https://phabricator.services.mozilla.com/D35187
2019-06-28 07:39:48 +00:00
Rok Garbas 7327b02ec9 Bug 1561582 - tooltool.py now supports python 3 and 2 r=rail CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D36010
2019-06-27 12:54:07 +00:00
Dorel Luca 0a4ec20753 Backed out changeset 7e05642566d0 (bug 1561582) for Toolchain failures. CLOSED TREE 2019-06-27 19:36:32 +03:00
Rok Garbas b1b176ab48 Bug 1561582 - tooltool.py now supports python 3 and 2 r=rail
Differential Revision: https://phabricator.services.mozilla.com/D36010
2019-06-27 12:54:07 +00:00
Mike Hommey 1444e64b90 Bug 1500436 - Redirect node.js's stderr to a pipe. r=froydnj
This works around https://github.com/nodejs/node/issues/14752, which
causes problems with make.

Differential Revision: https://phabricator.services.mozilla.com/D35986
2019-06-26 21:44:00 +00:00
Mike Hommey 66db968169 Bug 1561201 - Expose the list of build resource data from mach resource-usage page. r=nalexander
The `mach resource-usage` page supports a list of build resource data,
but only ever displays the first one. Nothing actually creates a list
with multiple items automatically, but one might want to do that
manually to explore data from multiple builds more conveniently.

So if such a list exists, we expose a dropdown list of all the data
available, and switch the graph when a different item is chosen from the
list.

Differential Revision: https://phabricator.services.mozilla.com/D35757
2019-06-25 16:48:19 +00:00
Mike Hommey e032c6a8c7 Bug 1561102 - Add license exception for the mach crate. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D35743
2019-06-25 20:25:44 +00:00
Mike Hommey fd8a424b95 Bug 1560527 - Enable make backend verbose mode automatically rather than relying on mach setting it. r=froydnj
This makes running without mach more consistent. e.g. running
`make -C $objdir/toolkit/library/rust target` makes the cargo log
verbose, and adding `-s` makes it less verbose.

Differential Revision: https://phabricator.services.mozilla.com/D35521
2019-06-21 13:15:30 +00:00
Mike Hommey 46625588d6 Bug 1560442 - Allow to build rust code in a separate tier. r=froydnj
When the `MOZ_RUST_TIER` environment variable is set, we enable a separate
tier that builds rust code only. This is useful to measure build times for
rust code separately from other compilations.

Differential Revision: https://phabricator.services.mozilla.com/D35501
2019-06-21 13:20:17 +00:00
Eric Rahm 4872d41144 Bug 1555067 - Backed out changeset 0801165e3175. r=jcj
NSS_ALLOW_SSLKEYLOGFILE no longer has issues upstream, we can allow it again.

Differential Revision: https://phabricator.services.mozilla.com/D34915
2019-06-13 20:59:55 +00:00
Bob Clary 3dbc898d06 Bug 1558931 - Improve performance of moz.build Schedules __or__, r=dustin.
Differential Revision: https://phabricator.services.mozilla.com/D34770
2019-06-13 16:07:26 +00:00
Andi-Bogdan Postelnicu dd1849e7c3 Bug 1559121 - Specify custom port for Coverity platform. r=bastien
Differential Revision: https://phabricator.services.mozilla.com/D34871
2019-06-13 12:58:30 +00:00
Justin Wood 618321aeb9 Bug 1533818 - Don't try to expand from a 'cose.manifest' file when repacking the l10n copy of omni.ja. r=aki
Differential Revision: https://phabricator.services.mozilla.com/D34697
2019-06-12 23:03:22 +00:00
Mike Hommey b749e17fcf Bug 1558737 - Remove BUILD_FASTER define. r=nalexander
The last use of the define was removed in bug 1437942.

Differential Revision: https://phabricator.services.mozilla.com/D34669
2019-06-12 16:20:16 +00:00
Mike Hommey 1d228de266 Bug 1557547 - Actively reject clang < 4.0 during configure. r=mshal
Bug 1394825 bumped the minimum version of clang we use on automation,
for the base toolchain jobs, and there's a libclang test for bindgen,
but we should reject the compiler in the first place.

The check to do that works in both C and C++, contrary to the original
3.6 test that was checking a C++ feature ; the test was later changed
for 3.9, using a check that would have worked in both C and C++, but
the C exception was left around. We remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D34083
2019-06-12 22:22:24 +00:00
Nick Alexander 10d782d532 Bug 1556162: Ignore non-deterministic localized resources in fat AARs. r=mshal
This works around the following situation: the Ngv/fat AAR task is
deterministic, but it depends on N tasks for multiple architectures,
adn the exact l10n changeset pulled by each N task depends on the tip
of the l10n HG repository at the time the N task executes.

For now, just ignore the obvious localized resources: *.ftl, *.dtd,
*.properties.

Differential Revision: https://phabricator.services.mozilla.com/D33413
2019-06-11 22:44:29 +00:00
Mike Hommey 56b158faf9 Bug 1557336 - Unset LC_CTYPE when executing pipenv. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D34484
2019-06-11 20:24:04 +00:00
David Teller aed1aa8f56 Bug 1520001 - dependency cloudabi is BSD-2 and must appear in about:license;r=mhoye
Not sure why this wasn't done before, but it prevented me from running `./mach rust vendor`.

Differential Revision: https://phabricator.services.mozilla.com/D34127
2019-06-10 13:22:58 +00:00
Eric Rahm 02afd5f5a7 Bug 1551368 - Part 3: Don't remove the rust incremental cache when clobbering. r=chmanchester
Skips over the incremental cache when performing a clobber. The incremental compilation cache is located at:
  `$(objdir)/$(rust_target)/$(rust_build_kind)/incremental`

When cross compiling there can be two caches, one for the host and one for the target so we handle both.

Differential Revision: https://phabricator.services.mozilla.com/D31310
2019-06-06 18:35:33 +00:00