gecko-dev/build
Nathan Froyd 37d0db29a9 Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 17:53:44 +00:00
..
autoconf Bug 1537644 - Avoid using link.exe during configure. r=chmanchester 2019-04-09 21:57:19 +00:00
build-clang Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander 2019-05-21 17:53:44 +00:00
build-infer
clang-plugin Bug 1538060 - Update non-Windows builds to clang 8. r=froydnj 2019-04-02 02:18:10 +00:00
compare-mozconfig Bug 1521584: [win64-aarch64] Add win64-aarch64 release mozconfigs; r=froydnj 2019-01-26 09:50:27 +00:00
debian-packages Bug 1541821 - Update debian7 docker images for CVE-2019-3462. r=tomprince 2019-04-04 16:23:58 +00:00
docs Bug 1526072 - Add build attributes to documentation. r=nalexander 2019-03-27 22:48:24 +00:00
gyp_includes
macosx Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander 2019-05-21 17:53:44 +00:00
mobile Bug 1539603 - Remove obsolete references to MediaPipelineFactory logging; r=jmaher 2019-03-28 00:13:48 +00:00
moz.configure Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander 2019-05-21 17:53:44 +00:00
package/mac_osx
pgo Bug 1552425 - re-disable e10s when generating PGO profile data to fix speedometer perf regression r=froydnj 2019-05-19 13:26:13 +00:00
pymake Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
sanitizers Bug 1518045 - Make Servo use a single thread-pool for layout-related tasks per-process. r=jdm 2019-01-07 00:53:04 +01:00
sparse-profiles Backed out 4 changesets (bug 1458385) for nightly updates fail. a=backout 2019-04-10 21:09:46 +03:00
tests/cram Backed out changeset 9567622873d6 (bug 1325897) for causing Toolchains stackwalks bustages CLOSED TREE 2019-04-02 05:36:23 +03:00
unix Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
valgrind Bug 1548941 - remove e10s force-enable and force-disable prefs, and on desktop restrict 'normal' e10s pref to automation and unofficial builds, r=bholley,ahal 2019-05-09 21:55:46 +00:00
win32 Bug 1325897 - Unship some Universal CRT DLLs. r=dmajor,glandium 2019-04-04 22:59:55 +00:00
win64 Bug 1524396 - Unify how target/host linker/flags are passed to rust. r=chmanchester 2019-03-22 11:05:18 +00:00
win64-aarch64 Bug 1523540 - Remove WIN64_LIB and WIN64_LINK. r=ted 2019-01-30 21:46:39 +00:00
workspace-hack Bug 1552695 - Part 1: Deduplicate syn and quote. r=froydnj 2019-05-20 12:21:20 +00:00
.gdbinit_python.in
.lldbinit.in Bug 1525968 - Post: Make $topobjdir/.lldbinit reference full build symbols on Android. r=froydnj 2019-03-27 22:37:58 +00:00
__init__.py
appini_header.py
application.ini.in
automation.py.in Bug 1539603 - Remove obsolete references to MediaPipelineFactory logging; r=jmaher 2019-03-28 00:13:48 +00:00
binary-location.mk
buildconfig.py
cargo-host-linker Bug 1524396 - Unify how target/host linker/flags are passed to rust. r=chmanchester 2019-03-22 11:05:18 +00:00
cargo-host-linker.bat Bug 1524396 - Unify how target/host linker/flags are passed to rust. r=chmanchester 2019-03-22 11:05:18 +00:00
cargo-linker Bug 1524396 - Unify how target/host linker/flags are passed to rust. r=chmanchester 2019-03-22 11:05:18 +00:00
cargo-linker.bat Bug 1524396 - Unify how target/host linker/flags are passed to rust. r=chmanchester 2019-03-22 11:05:18 +00:00
checksums.py
defines.sh
dumbmake-dependencies
gecko_templates.mozbuild Bug 1519744 - Remove MOZ_GLUE_WRAP_LDFLAGS. r=dmajor 2019-01-14 16:58:34 +00:00
gen_automation.py
gen_symverscript.py
gen_test_packages_manifest.py Bug 1513570 - Part 4: Back out the jit-tests added in bug 1503012. r=Ms2ger 2018-12-14 18:15:56 +00:00
genrc.sh
gn.mozbuild
gyp.mozbuild
gyp_base.mozbuild
mach_bootstrap.py Bug 1543247 - Part 1: Add `mach browsertime` command that installs and invokes browsertime. r=Standard8,ahal 2019-05-06 23:56:49 +00:00
merge_profdata.py Bug 1507344 - Add configure machinery for MOZ_PROFILE_USE and merging profile. r=nalexander 2018-12-21 19:02:11 +00:00
moz-automation.mk Bug 1492526: Don't build mar's as part of the build; r=firefox-build-system-reviewers,mshal,Callek 2018-10-01 18:15:40 +00:00
moz.build Bug 1548137 - Change bug component for build/mobile; r=jmaher 2019-04-30 22:45:44 +00:00
mozconfig.artifact Bug 1537707 - Don't use full build symbols artifacts when MOZ_DISABLE_FULL_SYMBOLS is set. r=chmanchester 2019-03-23 09:29:25 +09:00
mozconfig.artifact.automation Bug 1530908 - Always set USE_ARTIFACT from taskcluster for artifact builds. r=chmanchester 2019-03-06 22:48:30 +00:00
mozconfig.automation Bug 1492526: Don't build mar's as part of the build; r=firefox-build-system-reviewers,mshal,Callek 2018-10-01 18:15:40 +00:00
mozconfig.cache Bug 1543026 - enable sccache on gcp r=wcosta 2019-05-02 12:56:20 +00:00
mozconfig.clang-cl Bug 1523145 - Remove mk_export_correct_style. r=froydnj 2019-01-28 21:06:01 +00:00
mozconfig.comm-support no bug - fix spelling of 'mozila' tree-wide r=me 2019-03-18 15:55:18 -07:00
mozconfig.common Bug 1530908 - Don't use different mozconfigs for artifact builds. r=chmanchester 2019-03-06 22:48:05 +00:00
mozconfig.common.override Bug 1530908 - Don't use different mozconfigs for artifact builds. r=chmanchester 2019-03-06 22:48:05 +00:00
mozconfig.lld-link Bug 1523145 - Remove mk_export_correct_style. r=froydnj 2019-01-28 21:06:01 +00:00
mozconfig.nasm Bug 1520163 - Add linux64-nasm toolchain. r=glandium 2019-02-25 21:10:41 +00:00
mozconfig.no-compile Bug 1544139 - Un-set RUSTFLAGS for artifact builds. r=froydnj 2019-04-12 22:47:52 +00:00
mozconfig.node
mozconfig.pgo Bug 1528499 - Don't PGO the base-toolchain tasks on release branches. r=ted 2019-02-20 07:46:31 +09:00
mozconfig.rust
mozconfig.stylo
mozconfig.win-common Bug 1492526: Don't build mar's as part of the build; r=firefox-build-system-reviewers,mshal,Callek 2018-10-01 18:15:40 +00:00
qemu-wrap
submit_telemetry_data.py Bug 1505086: use `mach python` to submit build telemetry r=ted 2018-11-12 14:57:57 +00:00
templates.mozbuild Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00
test_templates.mozbuild
update-settings.ini
upload.py
upload_generated_sources.py Bug 1523324 - Add retries to upload_generated_sources.py; r=nalexander 2019-05-03 23:26:51 +00:00
variables.py
virtualenv_packages.txt Bug 1522931 - Vendor biplist; r=froydnj 2019-04-12 19:00:15 +00:00
windows_toolchain.py Bug 1530587 - Don't optimize jars without preloading/reordering data. r=chmanchester 2019-02-27 01:26:46 +00:00