Commit Graph
734 Commits
Author SHA1 Message Date
Makoto Kato 23092777f6 Bug 1401448 - Remove libstdc++ support from Android buildconfig. r=froydnj
libstdc++ support is broken after moving to moz.configure.  No one uses this option and NDK will remove GCC, so we should remove this and --with-android-cxx-stl option.

MozReview-Commit-ID: 3mqyHoRCE00
2017-09-20 16:38:48 +09:00
Makoto Kato c7e77adf7d Bug 1400128 - Link thumb library of libc++ when using MOZ_THUMB=1 and NDK r11c. r=froydnj
cpu_arch_dir isn't absolute path, we cannot always detect thumb library for c++ library.  Our build tool still uses NDK r11c, so we should check thumb library correctly.

MozReview-Commit-ID: 912ZDNeUcKc
2017-09-15 13:40:43 +09:00
Philip Chimento 0e039266b0 Bug 1379539 - Remove unnecessary NSPR dependency. r=glandium 2017-07-25 14:15:50 -07:00
Carsten "Tomcat" Book 0b510840f8 Backed out changeset 514cf1f55c6f (bug 1380639) 2017-08-07 13:23:35 +02:00
Sebastian Kaspari 55b1d8804d Bug 1380639 - Add contraint-layout and constraint-layer-solver dependencies. r=mcomella
MozReview-Commit-ID: AbZLlwdDHRV
2017-07-25 10:12:38 +02:00
Gregory Szorc fabe5adf14 Bug 1382930 - Remove configure references to gonk; r=glandium
Some gaia-related code was also found and removed as part of the
cleanup.

MozReview-Commit-ID: DEjVSljzzu1
2017-07-20 21:48:10 -07:00
70b71afc45 Bug 1344244 - Part 1: Accept newer Android lint version. r=glandium
MozReview-Commit-ID: KRwU0UKjkZZ
2017-06-29 11:43:22 -07:00
Sylvestre Ledru adbae267b9 Bug 1351109 - Move the gold linker support to the python configure r=glandium
MozReview-Commit-ID: 1FC0W7EqdCI
2017-07-05 11:27:56 +02:00
Nick Alexander dc02a72061 Bug 1352602 - Part 2: Use build system SDK versions in Gradle configurations. r=maliu
This patch does two things:

- add a Gradle-only ANDROID_COMPILE_SDK_VERSION substitution;
- uses it while uniformizing all of the Gradle Android SDK version
  configurations.

The approach is fairly standard (and we were using it already); see,
for example
https://medium.com/@ali.muzaffar/gradle-configure-variables-for-all-android-project-modules-in-one-place-5a6e56cd384e

This will make bumping the Gradle configuration versions forward
easier.

MozReview-Commit-ID: 1j5siCvR5qt
2017-06-21 10:52:30 -07:00
Nick Alexander 35f9c5bef1 Bug 1352602 - Part 1: Don't AC_DEFINE ANDROID_TARGET_SDK, MOZ_ANDROID_{MIN,MAX}_SDK_VERSION. r=chmanchester
This is just a small piece in the larger project of minimizing the set
of global AC_DEFINEs.  None of these are relevant to C/C++ code;
they're mobile/android specific, so we should get them out of
mozilla-config.h.

In addition, this replaces hard-coded values with values from the
build system throughout mobile/android.

MozReview-Commit-ID: 9IJlsm38LFK
2017-06-21 11:16:08 -07:00
Nathan Froyd b01baa839a Bug 1377970 - add -llog for Android in moz.build; r=chmanchester
Adding -llog in this way is cleaner and is just a little bit less m4.
2017-07-05 09:32:30 -04:00
Christian Holler 6e55b72a52 Bug 1373256 - Changes to support -fsanitize=integer in the codebase. r=froydnj
The -fsanitize=integer analysis from UBSan can be helpful to detect signed and unsigned integer overflows in the codebase. Unfortunately, those occur very frequently, making it impossible to test anything with it without the use of a huge blacklist. This patch includes a blacklist that is broad enough to silence everything that would drain performance too much. But even with this blacklist, neither tests nor fuzzing is "clean". We can however in the future combine this with static analysis to limit ourselves to interesting places to look at, or improve the dynamic analysis to omit typical benign overflows.

It also adds another attribute that can be used on functions. It is not used right now because it was initially easier to add things to the compile-time blacklist to get started.

Finally, it includes a runtime suppression list and patches various parts in the test harnesses to support that. It is currently empty and it should not be used on frequent overflows because it is expensive. However, it has the advantage that it can be used to differentiate between signed and unsigned overflows while the compile-time blacklist cannot do that. So it can be used to e.g. silence unsigned integer overflows on a file or function while still reporting signed issues. We can also use this suppression list for any other UBSan related suppressions, should we ever want to use other features from that sanitizer.

MozReview-Commit-ID: C5ofhfJdpCS
2017-04-09 12:59:26 +02:00
André Bargull 32d64e6209 Bug 1353650 - Part 6: Change minimum system ICU version to ICU 59. r=Waldo 2017-04-05 13:43:49 +02:00
Mike Hommey adffa5d08d Bug 1354581 - Move --enable-release/DEVELOPER_OPTIONS to python configure. r=cmanchester+432261 2017-06-21 10:29:28 +09:00
Nathan Froyd 1cd514eccb Bug 1372987 - move library/object prefix/suffix configuration to moz.configure; r=mshal
For parts of configuring Stylo, we need information about the library
extensions on all of our platforms, and this change is a reasonable way
to get at that information without duplicating it in two places.  Plus
moving more things to moz.configure is more better.
2017-06-19 14:20:29 -04:00
Mike Hommey 1a4798bca2 Bug 1367267 - Pass -fPIC when compiling the -pie configure test. r=gps 2017-05-24 09:24:09 +09:00
Mike Hommey 8bfbefc1a9 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
Mike Hommey 1f354dbf2a Bug 1363992 - Remove support for making jemalloc4 the default. r=njn 2017-05-11 13:16:00 +09:00
Mike Hommey 8d83a2663a Bug 1363992 - Remove support for system jemalloc. r=njn 2017-05-11 13:03:20 +09:00
Nick Alexander c34f63668b Bug 1365060 - Move MOZ_{NATIVE_DEVICES, INSTALL_TRACKING} to moz.configure. r=chmanchester
This intentionally allows to set MOZ_INSTALL_TRACKING without
reference to the milestone being release or beta.  That is, we
separate the default value (which depends on release or beta) from the
value specified, making life easier for developers.

MozReview-Commit-ID: 3vPF7KO7fEX
2017-05-15 14:37:54 -07:00
Alex Gaynor e7627a0aa9 Bug 1360300 -- Support enabling PIE when using clang. r=froydnj
Also remove bits of a comment, now that we support only macOS 10.9+, most of the
comment isn't relevant.

While PIE is enabled by default on macOS, this isn't true of clang on Linux.
--enable-pie can now be used with clang on Linux.

r=froydnj

MozReview-Commit-ID: rc6zJiWzLo
2017-05-01 15:45:33 -04:00
Jim Blandy 99ad264f5f Bug 1349022 - Don't put -DTRACING in the C/C++ flags for debug builds since nobody uses it. r=glandium 2017-03-20 15:25:55 -07:00
Andrzej Hunt b3e55202cd Bug 1338629 - Update annotation processing classpath to reflect SDK 25.3+ r=nalexander
It looks like Google decided to split these jars out a bit, so we need to piece
them all back together.

We could probably just query the sdk version instead, but I'm not 100% sure
know when this setup changed - moreover we don't know when (if?) the paths
are likely to change again. SDK 26.0 still has lint 25.3.1, so the SDK and
lint versions don't appear to be tied.

It seems that only the lint* jars are needed to compile 'build/annotationProcessor',
however we need all the remaining jars in the classpath when running that code
in 'widget/android/bindings'.

MozReview-Commit-ID: GAKwMrVXW55
2017-03-30 18:55:02 -07:00
Makoto Kato bd3269c57d Bug 1283611 - Change order of include path to support NDK r13+ r=froydnj
When using NDK r13+ with part 1, the following build error still occurs when using cmath.

 0:21.01 /mozilla/android-ndk-r14b/sources/cxx-stl/llvm-libc++/include/math.h:661:105: error: 'acosl' was not declared in this scope
 0:21.01  inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);}

To fix this, we need change the order of include path.

MozReview-Commit-ID: AZ3ebx3pAil
2017-03-27 12:11:51 +09:00
Dan Albert 8f59e1d1c9 Bug 1283611 - Add support for NDK r13's libc++ paths. r=froydnj
The inner directory in these projects was removed in r13.

MozReview-Commit-ID: AxWgxXyOKJ4
2016-11-11 14:35:51 -08:00
Jesse Schwartzentruber 7bc7b54490 Bug 1335411 - Fix --enable-address-sanitizer for Mac cross-compilation and adapt Linux ASan configs for Mac. r=froydnj 2017-02-10 11:10:23 -05:00
Ehsan Akhgari a522390935 Bug 1331957 - Part 12: Remove -Lclang/lib from the LDFLAGS used to build the clang plugin; r=froydnj
This ensures that we correctly link against /usr/lib/libc++.1.dylib.
With this flag left in LDFLAGS, the linker would find libc++.1.dylib in
clang/lib, which would cause us to link against @rpath/libc++.1.dylib.
2017-02-03 10:19:49 -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 3a1365d13c Bug 1331957 - Part 12: Remove -Lclang/lib from the LDFLAGS used to build the clang plugin; r=froydnj
This ensures that we correctly link against /usr/lib/libc++.1.dylib.
With this flag left in LDFLAGS, the linker would find libc++.1.dylib in
clang/lib, which would cause us to link against @rpath/libc++.1.dylib.
2017-02-02 20:21:00 -05:00
Carsten "Tomcat" Book 11757a7943 merge mozilla-inbound to mozilla-central a=merge 2017-01-12 10:14:43 +01:00
Eric Rahm c8b13d5876 Bug 1322735 - Enable frame pointers on 32-bit windows builds. r=glandium
This universally disables FPO on win32.

MozReview-Commit-ID: AT9ozxGN0C5
2017-01-11 17:54:18 -08:00
Carsten "Tomcat" Book 68ef3b46e9 Merge mozilla-central to mozilla-inbound 2017-01-11 16:37:37 +01:00
Carsten "Tomcat" Book eb290552dd merge mozilla-inbound to mozilla-central a=merge 2017-01-11 16:23:39 +01:00
Ryan VanderMeulen bdfde0757f Bug 1322027 - Don't disable hugepage support since it no longer causes PGO issues. 2017-01-11 09:04:48 -05:00
Jan Beich 0c1b5ee8ff Bug 1325246 - Unbreak build --with-system-icu after bug 1270146. r=glandium
MozReview-Commit-ID: Dob5wTmHgxn
2016-12-22 01:42:19 +00:00
Phil Ringnalda d24ca1e4dc Backed out 3 changesets (bug 1322735) for ASan leaks and xpcshell/selftest.py failures
CLOSED TREE

Backed out changeset 01cfc71ce542 (bug 1322735)
Backed out changeset 84c729c41230 (bug 1322735)
Backed out changeset b419aaefae95 (bug 1322735)
2017-01-10 20:17:34 -08:00
Eric Rahm 0e167846ef Bug 1322735 - Enable frame pointers on 32-bit windows builds. r=glandium
This universally disables FPO on win32.

MozReview-Commit-ID: AT9ozxGN0C5
2017-01-10 18:51:22 -08:00
Daniel Stenberg f96a39b04b Bug 1329272 - add bracket for sed 4.3 compliance, r=glandium 2017-01-09 23:25:00 +01:00
Ryan VanderMeulen f94b8a1d4f Bug 1322027 - Update jemalloc 4 to version 4.4.0. r=glandium 2017-01-10 22:50:36 -05:00
Mike Hommey 0e660eccd0 Bug 1142403 - Part 2: Enable jemalloc debug on debug builds. r=njn 2015-03-12 15:54:43 +09:00
Ting-Yu Chou f4d88c9ae6 Bug 1316545 part 1 - Link clang plugin with the import library of clang.exe to fix unresolved symbols. r=ehsan
MozReview-Commit-ID: G2PtmjBVacj
2016-11-16 12:36:58 +08:00
Mike Hommey bd5737186a Bug 1317504 - Don't try to set LD from old-configure. r=chmanchester
Now, it's completely unused.
2016-11-24 15:47:10 +09:00
Mike Hommey 3276162ab5 Bug 1317504 - Remove the GNU_LD variable, nothing uses it. r=chmanchester 2016-11-24 15:25:42 +09:00
Ted Mielczarek 0f4538fc62 bug 1295937 - build NSS using gyp files. r=glandium
MozReview-Commit-ID: Gm1PLWSJwbD
2016-11-09 12:37:09 -05:00
Mike Shal 8df0df34e3 Bug 1183613 - Cross compile universal OSX builds in Taskcluster; r=froydnj,ted
MozReview-Commit-ID: HNTqiVF9gov
2016-10-21 13:54:10 -04:00
Jonathan Kew 9cbaccc14b Bug 1316540 - Update version requirement for --with-system-icu to 58.1 for Unicode 9 support. r=waldo 2016-11-15 09:22:43 +00:00
Ting-Yu Chou 5e10170479 Bug 1200740 - Import blacklist for ASan on Windows to avoid instrumenting selected sandbox functions and files. r=glandium
MozReview-Commit-ID: DJJuD0dyyKz
2016-11-10 09:18:55 +08:00
James Willcox 2f221ea10e Bug 1309594 - Fix typo in Android build-tools detection r=sebastian
Patch from [email protected]
2016-10-31 13:15:00 +01:00
David Major d04718724b Bug 1313394 - Update build system to support 64-bit ASan DLLs. r=ted 2016-10-28 16:52:36 -05:00
Makoto Kato ec1d3aeff4 Bug 1253809 - Add Android/aarch64 build config. r=glandium
MozReview-Commit-ID: 2WN6GOWb572
2016-10-07 19:46:57 +09:00