Commit Graph
5079 Commits
Author SHA1 Message Date
Mike Hommey 2711e8fbfd Bug 1524467 - Use -m32/-m64 in more cases. r=froydnj
In upcoming changes, we're going to use the normal compiler flags for
bindgen instead of having a separate logic for essentially the same
flags (and there's not much reason not to use the same flags after all).

One hiccup, though is that for some reason, --target=i686-linux-gnu
doesn't work with bindgen while it works with clang in the same setup.
But -m32 does.

Considering -m32 and -m64 are standard flags and that we're using them
in many cases, it doesn't hurt to use them instead of --target with
clang.

While we're doing that, we might as well refactor a little to avoid the
multiple branches handling the use of -m32/-m64, and fix the theoretical
compile-x86_64-with-x86-clang-cl case, as well as the weird check for
aarch64.

And because only two cases actually require -Xclang, only one of which
requires a condition, and the control flow is not too complex to avoid
flag duplication, we just remove the append_flag function; it was too
confusing, with all the cases we skipped it when -Xclang was not wanted.

Differential Revision: https://phabricator.services.mozilla.com/D18316
2019-02-04 17:22:58 +00:00
Tooru Fujisawa 2fa7e2a37f Bug 1525688 - Lazily import mozbuild.base in mozboot/util.py. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D18986
2019-02-07 16:10:12 +00:00
Nabil Lamrabet e3b740d11b Bug 1518175 - Update bootstrap.py for ElementaryOS. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D18701
2019-02-06 17:18:04 +00:00
Oana Pop Rus b08973e907 Merge inbound to mozilla-central. a=merge 2019-02-06 11:53:48 +02:00
Cosmin Sabou 0c865719f6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-06 01:07:08 +02:00
Cosmin Sabou ac80cb1ced Merge mozilla-inbound to mozilla-central. a=merge 2019-02-05 23:58:20 +02:00
Razvan Maries ea310235e6 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-05 18:59:13 +02:00
Paolo Amadini 39beed37fc Bug 1523907 - Fix building the new "about:config" page on release channels. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D18082
2019-02-02 17:49:41 +00:00
Daniel Varga 1833abeded Backed out 3 changesets (bug 1525069) for linting failure at /builds/worker/checkouts/gecko/python/mozboot/mozboot/mozillabuild.p on a CLOSED TREE
Backed out changeset 1a41624ff365 (bug 1525069)
Backed out changeset ef7b4d60481f (bug 1525069)
Backed out changeset 898be859c1a4 (bug 1525069)
2019-02-04 23:50:08 +02:00
Nathan Froyd 2ab3003e77 Bug 1525069 - part 3 - install 32-bit node on aarch64 devices; r=nalexander
One less paper cut for frontend developers.
2019-02-04 16:32:17 -05:00
Nathan Froyd 204bc7a83d Bug 1525069 - part 2 - add a 32-bit node variable for bootstrapping; r=nalexander
We don't use this yet, but it's easy enough to get out of the way.
2019-02-04 16:32:17 -05:00
Nathan Froyd 3b43252c23 Bug 1525041 - avoid downloading rust packages when bootstrapping for artifact builds; r=Gijs
We do similar things for bindgen/clang.
2019-02-04 12:47:33 -05:00
Justin Wood 407db37a27 Bug 1524444 - Respect -n for linting in py3/py2 and better support it in other linters. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D6847
2019-02-01 20:39:05 +00:00
Brian 0e8cab68b6 Convert resetProfile.dtd to Fluent (Bug 1517307) r=jaws,flod
Convert resetProfile.dtd to resetProfile.ftl. Modify dependencies for resetProfile.xul, safeMode.xul, aboutSupport.xhtml.

Differential Revision: https://phabricator.services.mozilla.com/D17416
2019-02-03 21:33:23 +00:00
Coroiu Cristina b91b5cee59 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-02-04 23:47:17 +02:00
Andrew Halberstadt 7bafd64a69 Bug 1483228 - [mozboot] Add ability to get a srcdir specific state dir r=nalexander
Sometimes we want to store state that only applies to a particular srcdir, but
there isn't a standard directory where this lives. Let's add an argument to
'get_state_dir()' to provide an "official" place.

The new API to get the local state dir is 'get_state_dir(srcdir=True)'. Like
the global state dir, this directory is not guaranteed to exist. A reference to
this value can also be obtained via 'self._mach_context.local_state_dir' from
within a mach command (in this case it will be created automatically if it
doesn't exist).

Note: we should probably just make sure both exist at mach startup, but it felt
outside the scope of this change.

Differential Revision: https://phabricator.services.mozilla.com/D15724
2019-02-04 21:07:25 +00:00
Andrew Halberstadt 79ee2d1bda Bug 1483228 - [mozboot] Simplify get_state_dir()'s return value r=nalexander
mozboot.util.get_state_dir() returns a tuple of (<path>, <bool). The bool
denotes whether or not the state dir came from an environment variable.

But this value is only used in a single place, and is very easy to test for
anyway. It's not worth the added complexity it imposes on all other consumers
of this function. Let's just make this function return the path.

Differential Revision: https://phabricator.services.mozilla.com/D15723
2019-02-04 20:52:31 +00:00
Mike Hommey e46efd806b Bug 1523341 - Allow to only pass the CPU to --target and get the right thing for Fennec builds. r=nalexander
Also use armv7a as the default when no target is given at all.

Also change bootstrap to create a simpler mozconfig. The downside is
that the resulting mozconfig would not work when building older
revisions.

Add unit tests for this as well as the simplications added in bug
1523341.

Differential Revision: https://phabricator.services.mozilla.com/D17906
2019-01-31 18:08:44 +00:00
arthur.iakab 6fabeb4102 Backed out 4 changesets (bug 1508381) for multiple Windows build bustages CLOSED TREE
Backed out changeset f01cec6f712e (bug 1508381)
Backed out changeset ba69e59924de (bug 1508381)
Backed out changeset 97fe4e5a665e (bug 1508381)
Backed out changeset 0c3065c12bef (bug 1508381)
2019-01-31 23:14:11 +02:00
Dustin J. Mitchell 8cbc49f4cb Bug 1508381 - update buglist_creator to use new version of tc client r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D18117
2019-01-31 20:24:04 +00:00
Tom Prince f2294d5a65 Bug 1517177: Fix hash verification of downloaded toolchains; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D15961
2019-01-30 17:26:26 +00:00
Gurzau Raul 3f31b57619 Merge inbound to mozilla-central. a=merge 2019-01-30 19:03:12 +02:00
Tom Ritter ee8f70b81f Bug 1523003 - Remove the force-ms-compatibility for clang-cl r=glandium 2019-01-27 17:19:57 -06:00
Avery Berninger 1180899d1c Bug 1517519 - Migrated aboutTabCrashed dtd files to ftl files with migration script, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D16789
2019-01-30 14:12:39 +00:00
shindli 776effa650 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-29 23:54:31 +02:00
shindli ab4e6c3ffb Merge inbound to mozilla-central. a=merge 2019-01-29 23:37:33 +02:00
Emilio Cobos Álvarez 142e47d00c Bug 1523686 - Support giving a commit or commit range to mach clang-format. r=Ehsan
I always forget to run clang-format before-hand. This allows me to run it on a
particular commit of my tree where the formatting doesn't match the canonical
one.

Differential Revision: https://phabricator.services.mozilla.com/D17955
2019-01-29 17:33:04 +00:00
Tom Ritter d2b10184e4 Bug 1376621 - Search for networking symbols in rust code and fail if they are found. r=glandium 2019-01-25 12:19:41 -06:00
Cosmin Sabou bf63534551 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Sebastian Hengst 52bd9f0e1e Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Mike Hommey c19e3ef4ae Bug 1523204 - Automatically add WIN_DIA_SDK_BIN_DIR to PATH when running dump_syms. r=chmanchester
We can't run dump_syms without the DIA SDK binary directory in $PATH
because dump_syms requires the DIA dll from there.

Obviously, the corresponding test can't run if the DIA SDK binary
directory is not known (rather than when the dia2.h header is not found,
since the build system currently relies on WIN_DIA_SDK_BIN_DIR being
given manually).

Differential Revision: https://phabricator.services.mozilla.com/D17892
2019-01-29 07:38:12 +00:00
Jared Wein 1d5a6b38ff Bug 1517508 - Migrate aboutRobots.dtd to Fluent. r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15661
2019-01-28 22:31:09 +00:00
Mike Hommey f24595b3e7 Bug 1522788 - Harmonize config.guess handling between mach and configure. r=chmanchester
In fact, "simply" use whatever python configure does to find a shell to
execute config.guess and config.sub, and get both the mozconfig content
and the real, canonicalized target alias. This has the side effect of
making builds with --target=$cpu use a complete obj-$cpu-$os default
objdir instead of obj-$cpu. This will also allow to change the
host-guessing logic without having to duplicate code.

Differential Revision: https://phabricator.services.mozilla.com/D17618
2019-01-28 22:14:23 +00:00
Jan Henning dadc9ecba7 Bug 1503455 - Part 4: Compile with SDK28. r=nalexander,snorp
android.test.* is no longer part of the main framework, so as per
https://developer.android.com/training/testing/set-up-project,
- we must no longer declare them as a *required* dependency in our manifests
- we must explicitly include a dependency on them in our build config

This will temporarily break running tests depending on android.test.* (i.e.
mainly Robocop) on devices using P or newer until we also start targeting P as
well.

Differential Revision: https://phabricator.services.mozilla.com/D16422
2019-01-28 18:32:11 +00:00
Mike Hommey 6549e018bb Bug 1523146 - Remove checks for MSVC < 2017. r=dmajor
We reject MSVC compilers < 2017 already, there's no point checking for
smaller versions after that.

Differential Revision: https://phabricator.services.mozilla.com/D17770
2019-01-28 03:30:03 +00:00
Cosmin Sabou 00652bbbfd Backed out 6 changesets (bug 1516228) for causing bug 1523056. a=backout
Backed out changeset 24ebb52d21fa (bug 1516228)
Backed out changeset 53d93ee3ad84 (bug 1516228)
Backed out changeset 4f53ede33517 (bug 1516228)
Backed out changeset 2e6bec87c9f3 (bug 1516228)
Backed out changeset 09ee05a4cc30 (bug 1516228)
Backed out changeset 8456feb780f7 (bug 1516228)
2019-01-26 21:12:33 +02:00
Mike Hommey 2ad745345a Bug 1516228 - Use llvm-objdump for symbol related tests in check_binary.py. r=firefox-build-system-reviewers,mshal
Depends on D17466

Differential Revision: https://phabricator.services.mozilla.com/D17467
2019-01-24 23:32:29 +00:00
Rob Lemley 2a01b8ad93 Bug 1517298 - Add comm mozharness configs to mozharness test archive. r=firefox-build-system-reviewers,mshal
First step in moving Thunderbird mozharness unittest configurations out of
M-C. This merges the comm/mozharness directory into the mozharness test
archive's mozharness/configs/ so that the comm config files can be accessed
later by desktop_unittest.py. This inclusion is conditional and will only happen
when building Thunderbird; there are no changes to the mozharness.zip file when
building Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D16374
2019-01-22 20:15:36 +00:00
Sylvestre Ledru 6c0a4cd2b9 Bug 1521460 - clang-format: also update .m files r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17388
2019-01-24 08:10:47 +00:00
Tim Nguyen 8709ff617c Bug 1524777 - Convert the certificate viewer's XUL grid to HTML table. r=keeler,flod
Differential Revision: https://phabricator.services.mozilla.com/D18489
2019-02-05 20:49:16 +00:00
Mike Hommey 82c023e46b Bug 1516228 - Use llvm-objdump for symbol related tests in check_binary.py. r=mshal
Depends on D17466

Differential Revision: https://phabricator.services.mozilla.com/D17467
2019-01-29 08:38:07 +09:00
Dorel Luca 7f2208e26c Backed out changeset 3b666f82d750 (bug 1517519) for Browser-chrome failures in browser/components/sessionstore/test/browser_background_tab_crash.js. CLOSED TREE 2019-01-23 18:00:01 +02:00
Avery Berninger 2d253cf71b Bug 1517519 - Migrated aboutTabCrashed dtd files to ftl files with migration script, r=jaws,flod
***
bug 1517519 - fixed syntactical errors, r?flob r?gijs r?jaws

***
Fixed line endings (CRLF to LF). Fixed changed Placeholder to data-l10n-id. Added: ', Part {index}.' to migration script.

***
Fixed indentation & removed some testing text :)

***
removed part of doctype & fixed line breaks

Differential Revision: https://phabricator.services.mozilla.com/D16789
2019-01-23 15:04:03 +00:00
Sebastian Hengst bd1166c5e2 Merge mozilla-central to autoland 2019-01-23 11:31:44 +02:00
Mike Hommey a07af6b5cf Bug 1521691 - Remove _MSC_VER from configure. r=chmanchester
The only use in configure itself is for a MSVC version check that is now
always true (we don't accept versions < 19.15 anymore).

The only uses in the build system are in code that could just use
CC_TYPE instead.

Differential Revision: https://phabricator.services.mozilla.com/D17207
2019-01-23 00:35:10 +00:00
shindli d231c2df75 Backed out 2 changesets (bug 1521691) for bustages in clang-plugin.dll CLOSED TREE
Backed out changeset 09e1109d2350 (bug 1521691)
Backed out changeset cfee3de00f12 (bug 1521691)
2019-01-23 00:51:59 +02:00
Mike Hommey d3be02a127 Bug 1521691 - Remove _MSC_VER from configure. r=chmanchester
The only use in configure itself is for a MSVC version check that is now
always true (we don't accept versions < 19.15 anymore).

The only uses in the build system are in code that could just use
CC_TYPE instead.

Differential Revision: https://phabricator.services.mozilla.com/D17207
2019-01-22 22:26:15 +00:00
Matt Howell 1b0b52aa8b Bug 1514806 Part 6 - Disable running UPX in the installer package for targets it doesn't support. r=firefox-build-system-reviewers,mshal#firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15984
2019-01-22 21:58:55 +00:00
Harry Twyford 95cb2a6ad2 Bug 1313429 - Add Touch Bar functionality to Firefox r=spohl,mikedeboer,flod
Adds Touch Bar functionality to Firefox across eight commits.

Differential Revision: https://phabricator.services.mozilla.com/D5496
2019-01-22 17:13:33 +00:00
Gurzau Raul d84056392c Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-23 02:05:32 +02:00