Commit Graph

8736 Commits

Author SHA1 Message Date
Csoregi Natalia
6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Steve Fink
6c335b53f8 Bug 1614518 - Implement mach hazards command set for running the GC rooting hazard analysis. r=ahal,jonco,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62384

--HG--
extra : moz-landing-system : lando
2020-02-20 18:27:50 +00:00
Mike Shal
39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
Masatoshi Kimura
8f0af48cb1 Bug 1614540 - Improve -std switch replacement. r=froydnj
This patch will support all of `-std:`, `-std=`, and `-Xclang -std=`.
This patch will also a bit faster because the current code will call `sed` for
each argument.

Differential Revision: https://phabricator.services.mozilla.com/D63472

--HG--
extra : moz-landing-system : lando
2020-02-20 14:31:38 +00:00
Chris Manchester
7335e6b9ad Bug 1578493 - Don't use ~ in doc examples where tilde expansion no longer occurs. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D63357

--HG--
extra : moz-landing-system : lando
2020-02-19 18:24:25 +00:00
byron jones
095ba09dda Bug 1495394 - add mach install-moz-phab command; r=firefox-build-system-reviewers,chmanchester
Install moz-phab using the correct command for the current operating system as
per moz-phab's documentation.

Differential Revision: https://phabricator.services.mozilla.com/D59139

--HG--
extra : moz-landing-system : lando
2020-02-19 05:28:32 +00:00
Mike Shal
d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D60919

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Ricky Stewart
ed86c19248 Bug 1614994 - Adjust sys.path manipulation in configure to ensure we can pick up shutil_which r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62960

--HG--
extra : moz-landing-system : lando
2020-02-18 15:34:03 +00:00
David Major
bd6fe2ef86 Bug 1614367 - Fix CMAKE_FIND_ROOT_PATH in build-clang for mac r=glandium
Best as I can tell, this was a longstanding typo. This went unnoticed because cmake didn't do any interesting `find`s -- until recently in LLVM 10, where zlib is now queried via `find_package`.

Differential Revision: https://phabricator.services.mozilla.com/D62829

--HG--
extra : moz-landing-system : lando
2020-02-18 07:45:12 +00:00
Andi-Bogdan Postelnicu
e67b41e3c7 Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63000

--HG--
extra : moz-landing-system : lando
2020-02-17 18:30:50 +00:00
Andreea Pavel
ff331ccbb6 Backed out changeset 517de066cc6f (bug 1615826) for linting failures at CustomAttributes.cpp on a CLOSED TREE 2020-02-17 20:16:08 +02:00
Andi-Bogdan Postelnicu
ac2806eae5 Bug 1615826 - Reformat clang-plugin to LLVM standard. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63000

--HG--
extra : moz-landing-system : lando
2020-02-17 17:23:16 +00:00
Andi-Bogdan Postelnicu
47700a0dea Bug 1615245 - checker fopen-usage should ignore some gtest include files. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62997

--HG--
extra : moz-landing-system : lando
2020-02-15 17:56:39 +00:00
Razvan Maries
90c44816ea Backed out changeset e56af64a3199 (bug 1615245) for build bustages on CustomMatchers.h. 2020-02-15 19:48:06 +02:00
Andi-Bogdan Postelnicu
cadd1bc08a Bug 1615245 - checker fopen-usage should ignore some gtest include files. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62997

--HG--
extra : moz-landing-system : lando
2020-02-15 17:36:32 +00:00
Mike Hommey
665fc1b7b5 Bug 1615511 - Don't use raw backslashed paths. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62865

--HG--
extra : moz-landing-system : lando
2020-02-14 12:16:07 +00:00
Mike Hommey
3739cae7aa Bug 1615511 - Don't use a Windows-specific exception. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62864

--HG--
extra : moz-landing-system : lando
2020-02-14 12:15:45 +00:00
Mike Hommey
fd678c4aa5 Bug 1615511 - Use a host depend instead of a platform module import. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62863

--HG--
extra : moz-landing-system : lando
2020-02-14 12:15:12 +00:00
Mike Hommey
fb3ad206c9 Bug 1615511 - Don't use os.pathsep in windows.configure. r=froydnj
While this works on Windows, because os.pathsep is `;`, it actually
doesn't work on non-Windows, because clang-cl is still expecting `;`,
but os.pathsep is `:`.

Differential Revision: https://phabricator.services.mozilla.com/D62862

--HG--
extra : moz-landing-system : lando
2020-02-14 21:26:09 +00:00
Cosmin Sabou
ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Mike Shal
ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D60919

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Coroiu Cristina
fc53596ca3 Backed out 2 changesets (bug 1598068) for build bustage at ShowSSEConfig on a CLOSED TREE
Backed out changeset 5fb8d24977eb (bug 1598068)
Backed out changeset eba60d849030 (bug 1598068)
2020-02-14 00:48:07 +02:00
James Willcox
94570d7699 Bug 1598068 - Increase Android targetSdk to 29 r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D61013

--HG--
extra : moz-landing-system : lando
2020-02-12 19:10:38 +00:00
Brindusan Cristian
e2fb6b8344 Backed out changeset 7fefed11f117 (bug 1611326) for build bustages at update-1.xpi.stub. CLOSED TREE 2020-02-13 23:33:34 +02:00
Mike Shal
e6464dd404 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D60919

--HG--
extra : moz-landing-system : lando
2020-02-13 20:31:50 +00:00
Ricky Stewart
6a2ff09153 Bug 1614994 - Fix "ImportError: No module named shutil_which" in configure r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D62770

--HG--
extra : moz-landing-system : lando
2020-02-13 18:34:12 +00:00
David Major
5df8b566b9 Bug 1612461 - Translate LLVM_CXXFLAGS's -std: to -std= for clang-cl r=froydnj,glandium
clang-plugin.dll links against clang.exe so they both need to use the same C++ standard. This is achieved by having build/clang-plugin/moz.build use the flags from llvm-config. However, llvm-config uses the `-std:c++14` format, so our flags end up looking like:
`-Xclang -std=c++17 ... -std:c++14`
and apparently the former wins out in clang's option plumbing, so the compiler still thinks we requested c++17.

This patch makes clang-plugin use the `-Xclang -std=` format so that the override happens as desired.

Differential Revision: https://phabricator.services.mozilla.com/D62271

--HG--
extra : moz-landing-system : lando
2020-02-13 06:41:23 +00:00
Masatoshi Kimura
a5f89bc5bf Bug 1614840 - Fix fopen-usage checker so that it does not match wchar_t. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D62582

--HG--
extra : moz-landing-system : lando
2020-02-12 14:26:44 +00:00
Chris Manchester
90b8c7c6b2 Bug 1613823 - Serialize cargo invocations in the build system, prioritizing gecko. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D61961

--HG--
extra : moz-landing-system : lando
2020-02-11 21:51:56 +00:00
Emilio Cobos Álvarez
42f94345f2 Bug 1613176 - Introduce NonTrivialTypeInFfiChecker. r=andi
This ensures that we don't pass non-trivially-copiable types through the FFI
boundary.

Differential Revision: https://phabricator.services.mozilla.com/D61626

--HG--
extra : moz-landing-system : lando
2020-02-11 13:11:29 +00:00
Nathan Froyd
4bb0df12f2 Bug 1604616 - check for a new enough libstdc++; r=glandium
After a C++ language version bump, It's possible to wind up in
situations where we are using a new enough compiler version, but the
libstdc++ version in use is not new enough to support new language
features: self-compiled clang with system libraries, clang from `mach
bootstrap` prior to C++ language version bump (and thus including a new
libstdc++ with the boostrapped clang), etc.

Previously, such a situation would mean that things would work fine, and
then start breaking as soon as new library features started to be used.
Let's try to catch the problem earlier, when the update happens, by
verifying that the libstdc++ version is at least as new as the GCC
version we're requiring.

Differential Revision: https://phabricator.services.mozilla.com/D57516

--HG--
extra : moz-landing-system : lando
2020-02-10 18:51:42 +00:00
Emilio Cobos Álvarez
c3cc693c75 Bug 1614198 - Update cbindgen. r=heycam
I need this to support individual #[cfg] in enum variants, which is used for
Image::PaintWorklet.

Differential Revision: https://phabricator.services.mozilla.com/D62160

--HG--
extra : moz-landing-system : lando
2020-02-10 03:06:53 +00:00
Andi-Bogdan Postelnicu
27d6c7c59b Bug 1391711 - Implement a static analysis checker to detect usages of fopen/ open like functions on win32 platform. r=sg
This is a re-work of `https://mzl.la/31Bkl47`, and because time passed and not all of the
issues reported by this checker were fixed and we want to land it, we've decided to move
from errors diagnostic messages to warnings.

Differential Revision: https://phabricator.services.mozilla.com/D61753

--HG--
extra : moz-landing-system : lando
2020-02-10 14:41:26 +00:00
Razvan Maries
22c866afe4 Backed out changeset c02a7a545a87 (bug 1613247) for causing Bug 1613926 as per Tom's request. CLOSED TREE 2020-02-07 21:59:07 +02:00
Geoff Brown
3161788df7 Bug 1603499 - Report java exceptions from minidump .extra files; r=bc
Stop using mozcrash.check_for_java_exception(), which scans logcat for uncaught
exceptions. Instead, check for java_stack in the extra dump information during
normal crash reporting; if java_stack is present, display the java exception and
stack instead of dumping a full native crash report.

Differential Revision: https://phabricator.services.mozilla.com/D61836

--HG--
extra : moz-landing-system : lando
2020-02-07 16:05:52 +00:00
Michael Forney
477f5c111e Bug 1157850 - Use portable add_dir_entries() implementation when fts.h is missing r=mhowell
fts.h is also missing on musl. Since the Solaris fallback implementation
does not use any non-standard functions, use that as the fallback when
the FTS interface is not available.

Also, fix an issue with the readdir implementation. Previously, the
absolute directory path was passed to the recursive add_dir_entries()
call, which would then prepend install path again.

Differential Revision: https://phabricator.services.mozilla.com/D61407

--HG--
extra : moz-landing-system : lando
2020-02-07 05:17:12 +00:00
Mike Hommey
623de66503 Bug 1525218 - Use minidump_stackwalk toolchain artifacts instead of tooltool packages. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59936

--HG--
extra : moz-landing-system : lando
2020-02-06 08:39:54 +00:00
Tom Prince
ed771d2f29 Bug 1613247: Simplify sccache config; r=firefox-build-system-reviewers,chmanchester
The logic for finding the sccache configuration to use has gone through several
iterations. At this point, all the build workers set
`TASKCLUSTER_WORKER_LOCATION`, so remove the code for dealing with other
configurations. Also don't set sccache configuration if it is disabled, even
if the bucket somehow gets set.

Differential Revision: https://phabricator.services.mozilla.com/D61635

--HG--
extra : moz-landing-system : lando
2020-02-06 00:52:05 +00:00
Tom Prince
efa6a0b1ff Bug 1613247: Use calculated GCS bucket in mozconfig.cacche; r=firefox-build-system-reviewers,chmanchester
The code goes to some length to calculate the bucket to use, but then
hard-codes the bucket in the credential URL it uses.

Differential Revision: https://phabricator.services.mozilla.com/D61634

--HG--
extra : moz-landing-system : lando
2020-02-06 00:56:00 +00:00
Sylvestre Ledru
9ee8d05df3 Bug 1613074 - Enable -Wunused-function & -Wunused-variable at the build phase r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D61550

--HG--
extra : moz-landing-system : lando
2020-02-04 14:36:58 +00:00
Andi-Bogdan Postelnicu
eb2b106a8c Bug 1580260 - rework the logic for MustReturnFromCaller checker. r=froydnj
Starting with `Clang-10`, and in particular with `https://reviews.llvm.org/D66404`,
the `CFG` has been reflown in order to reduce discrepancies in destructor calls with
the actual codegen. This has also impacted the order of `CFGStmt` for `ReturnStmt`,
whereas now the AST children of the `ReturnStmt` have precedence other their parent
node.
The purpose of this patch is to fix this and add new supported cases for the `Expr`
that is generated from `ReturnStmt`.

Differential Revision: https://phabricator.services.mozilla.com/D61556

--HG--
extra : moz-landing-system : lando
2020-02-05 08:34:36 +00:00
Emilio Cobos Álvarez
d99e85ea4b Bug 1613176 - Enable -Wreturn-type-c-linkage. r=froydnj
JSAPI functions are not extern "C" anymore. This warning has a couple false
positives due to template specialization (see first patch of this bug), but we
were already working around them, because apparently some mingw builds use it.

Once I fix cbindgen to generate the specializations as needed we can remove
those workarounds, but this is green in the meantime and doesn't hurt.

Depends on D61626

Differential Revision: https://phabricator.services.mozilla.com/D61627

--HG--
extra : moz-landing-system : lando
2020-02-05 11:21:04 +00:00
J.C. Jones
3a0a8e2762 Bug 1613275 - Regenerate expired certs not handled by Bug 1607845 a=RyanVM CLOSED TREE
commands:

openssl x509 -in security/manager/ssl/tests/unit/test_missing_intermediate/missing-intermediate.pem -outform der -out security/manager/ssl/tests/unit/test_missing_intermediate/missing-intermediate.der

mach python ./build/pgo/genpgocert.py

./mach python ./security/manager/ssl/tests/unit/pycert.py <security/manager/ssl/tests/unit/test_certDB_import/emailEE.pem.certspec >security/manager/ssl/tests/unit/test_certDB_import/emailEE.pem
./mach python ./security/manager/ssl/tests/unit/pycert.py <security/manager/ssl/tests/unit/test_certDB_import/importedCA.pem.certspec >security/manager/ssl/tests/unit/test_certDB_import/importedCA.pem
./mach python ./security/manager/ssl/tests/unit/pycert.py <security/manager/ssl/tests/unit/test_intermediate_preloads/ee.pem.certspec >security/manager/ssl/tests/unit/test_intermediate_preloads/ee.pem
./mach python ./security/manager/ssl/tests/unit/pycert.py <security/manager/ssl/tests/unit/test_intermediate_preloads/ee2.pem.certspec >security/manager/ssl/tests/unit/test_intermediate_preloads/ee2.pem
./mach python ./security/manager/ssl/tests/unit/pycert.py <security/manager/ssl/tests/unit/test_intermediate_preloads/int.pem.certspec >security/manager/ssl/tests/unit/test_intermediate_preloads/int.pem
./mach python ./security/manager/ssl/tests/unit/pycert.py <security/manager/ssl/tests/unit/test_intermediate_preloads/int2.pem.certspec >security/manager/ssl/tests/unit/test_intermediate_preloads/int2.pem


Differential Revision: https://phabricator.services.mozilla.com/D61653

--HG--
extra : amend_source : ba63f416c91785a479695f342cf8db70ccd49cba
2020-02-04 20:17:49 -07:00
Chris Manchester
faa6984eb6 Bug 1612305 - Remove log from the mozilla central workspace hack. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D61296

--HG--
extra : moz-landing-system : lando
2020-02-04 00:06:18 +00:00
Rob Lemley
bcc6b23169 Bug 1574409 - Make mozconfig.cache useable for Thunderbird builds. r=firefox-build-system-reviewers,mshal
Much of Firefox's mozocnfig.cache file is duplicated in Thunderbird's tree
in order to set a slightly different bucket name. This has led to broken buids
in the past.
The only difference is the first part of the name. With this change, a Thunderbird
mozconfig file can set $aws_prefix to "comm-central" before mozconfig.cache
gets included and be correctly configured.
GCP support is not required at this time.

Differential Revision: https://phabricator.services.mozilla.com/D61143

--HG--
extra : moz-landing-system : lando
2020-01-31 00:50:52 +00:00
Tom Ritter
ab97c8e874 Bug 1612424 - Patch nsis to call lld with --no-insert-timestamp r=froydnj
Adding --no-insert-timestamp to APPEND_LINKFLAGS for nsis is not working as it
is used for both the host and cross-compiled parts, but this option is
only valid for the Windows linker. Therefore we add it using a patch
to the cross-compilation part only.

Differential Revision: https://phabricator.services.mozilla.com/D61321

--HG--
extra : moz-landing-system : lando
2020-01-31 08:30:46 +00:00
Emilio Cobos Álvarez
4ba89c93cf Bug 1612092 - Update cbindgen. r=froydnj
v0.12.2 at least is needed to have proper v2 lockfile support.

But v0.13.0 contains extra fixes, and features that wgpu and the style system
plan to use, so let's just update to that.

Differential Revision: https://phabricator.services.mozilla.com/D61334

--HG--
extra : moz-landing-system : lando
2020-01-31 08:03:17 +00:00
David Major
ce4f2fde5b Bug 1612458 - Remove some orphaned build-clang patches r=froydnj
I noticed these unused files when they got in my way of doing searches.

Differential Revision: https://phabricator.services.mozilla.com/D61332

--HG--
extra : moz-landing-system : lando
2020-01-31 08:29:42 +00:00
Andy Grover
f659db9daf Bug 1611990 - Firefox omits Rust log messages of less than WARN level unless compiled in debug mode r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D61254

--HG--
extra : moz-landing-system : lando
2020-01-30 04:51:51 +00:00
Ricky Stewart
232331fdb4 Bug 1610944 - configure/test_toolchain_configure.py and configure/test_toolchain_helpers.py support Python 3 r=firefox-build-system-reviewers,mshal CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D60743

--HG--
extra : source : f5b4973be6dac983ff87add5d198f959de2cec78
extra : amend_source : 30b53ec7c0a22138d43d9c7e85c6e43c9dea84b1
2020-01-23 17:15:38 +00:00