gecko-dev/config
Ralph Giles 40e81c774e Bug 1365993 - Don't pass mac frameworks to cargo linker. r=froydnj
Procedural macros for rust are compiled as dynamic libraries.
The compiler subsequently loads those libraries at runtime
when it compiles crates which make use of them.

We pass the generic LDFLAGS to our linker wrapper which ensures
cargo links static libraries with the correct flags. However
this also means that any final system dependency libraries
end up linked into the procedural macro dynamic libraries
whether they use them or not.

When building on macOS 10.7, this causes a SIGTRAP when dlopen
calls CFInitialize for system libraries like Cocoa off the main
thread. We believe this is a macOS bug, reported fixed in macOS 10.9.
https://openradar.appspot.com/7209349

Work around the issue by stripping those libraries and Frameworks
from the linker flags we pass to cargo. We could do a more careful
job of parsing and removing all -framework and -lfoo arguments
inside the linker script, but since this is a temporary issue
while we're using older build machines, I thought just stripping
them once in the build system was simpler.

MozReview-Commit-ID: CGXD8ARvojj

--HG--
extra : rebase_source : 33f28e8fbafb43dbdd257d9162a6e792fca79e51
2017-05-25 14:49:32 -07:00
..
external Bug 1358023: (2/2) Build freetype2 by using moz.build; r=glandium 2017-05-22 12:02:14 +08:00
faster Bug 1319345 - application.ini fixup for artifact build bustage; r=gps 2016-11-22 14:50:28 -08:00
makefiles Bug 1353541 Fix rustc in MinGW build r=froydnj,ted 2017-04-26 12:08:59 -05:00
Moz
tests Bug 1304508 - Remove makefile mkdir testing; r=ted 2017-04-26 13:27:37 -07:00
android-common.mk
autoconf-js.mk.in
autoconf.mk.in
baseconfig.mk Bug 1338559 - Use the tier system to recurse for 'make check'; r=glandium 2017-02-03 16:47:28 -05:00
check_js_msg_encoding.py Bug 1361172 - Rewrite code for finding files in VCS checkout; r=glandium 2017-05-18 16:06:49 -07:00
check_js_opcode.py Bug 1343417 - Verify bytecode documentation in js/src/vm/Opcodes.h in make check. r=nbp 2017-04-03 10:14:38 +09:00
check_macroassembler_style.py Bug 1361172 - Rewrite code for finding files in VCS checkout; r=glandium 2017-05-18 16:06:49 -07:00
check_source_count.py
check_spidermonkey_style.py Bug 1361172 - Rewrite code for finding files in VCS checkout; r=glandium 2017-05-18 16:06:49 -07:00
check_vanilla_allocations.py
config.mk Bug 1355671 - Add optimization flags to HOST_CXXFLAGS similarly to HOST_CFLAGS. r=gps 2017-04-07 17:03:21 +09:00
createprecomplete.py
doxygen.cfg.in
emptyvars-js.mk.in
emptyvars.mk.in
expandlibs_config.py Bug 1353541 Fix rustc in MinGW build r=froydnj,ted 2017-04-26 12:08:59 -05:00
expandlibs_exec.py
expandlibs_gen.py
expandlibs.py
find_OOM_errors.py
gcc_hidden.h
gcc-stl-wrapper.template.h
install.bat
link.py
make-stl-wrappers.py
Makefile.in Bug 1338608 - Move check_mkdir.tpy into a python unittest manifest; r=chmanchester 2017-02-02 17:49:11 -05:00
milestone.txt Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2017-03-06 23:53:55 +01:00
moz.build Bug 1338608 - Move check_mkdir.tpy into a python unittest manifest; r=chmanchester 2017-02-02 17:49:11 -05:00
mozunit.py
MozZipFile.py
msvc-stl-wrapper.template.h Backed out changeset 8c35a43033bc (bug 1349064) 2017-04-06 22:48:41 +02:00
nsinstall.c Backed out changeset 349a316ed0f7 (bug 1316735) for build packaging failures 2016-12-13 10:48:40 -08:00
nsinstall.py
pathsub.c
pathsub.h
printconfigsetting.py
printprereleasesuffix.py
pythonpath.py
rebuild_check.py
recurse.mk Bug 1361418 - Remove Java Addons from Firefox for Android. r=sebastian 2017-05-02 11:49:16 -07:00
rules.mk Bug 1365993 - Don't pass mac frameworks to cargo linker. r=froydnj 2017-05-25 14:49:32 -07:00
static-checking-config.mk Bug 1316545 part 4 - Run clang.exe instead of clang-cl.exe for loading the plugin. r=ehsan,glandium 2016-11-22 14:20:58 +08:00
stl-headers Bug 1350262 - implement prime rehash policy compat for unordered_map and unordered_set in libstdc++. r=glandium 2017-05-09 22:15:18 -04:00
string-format.js
system-headers Bug 1364840 - Part 1. Add sys/auxv.h to system-headers. r=glandium 2017-05-15 18:30:49 +09:00
version_win.pl
version.mk