зеркало из https://github.com/mozilla/gecko-dev.git
d3325ce1a2
For linking static libraries, rustc will use whatever `cc` it finds (or the equivalent on Windows). For our purposes, however, `cc` is not what we use to link and we may have additional options we would like to pass to the linker. To do this, we need to tell Cargo about our alternate linker (currently only used for target compilations, on the theory that the host compiler rustc finds is probably good enough) and we also need to pass our linker options into the process. We do this with environment variables, which is not a great solution, but works surprisingly well. This alternate linker is disabled for ASan builds due to peculiar crashes when running Rust build scripts and for Windows, because we don't do any interesting cross-compiling there. |
||
---|---|---|
.. | ||
Moz | ||
external | ||
faster | ||
makefiles | ||
tests | ||
Makefile.in | ||
MozZipFile.py | ||
android-common.mk | ||
autoconf-js.mk.in | ||
autoconf.mk.in | ||
baseconfig.mk | ||
check_js_msg_encoding.py | ||
check_js_opcode.py | ||
check_macroassembler_style.py | ||
check_source_count.py | ||
check_spidermonkey_style.py | ||
check_utils.py | ||
check_vanilla_allocations.py | ||
config.mk | ||
createprecomplete.py | ||
doxygen.cfg.in | ||
emptyvars-js.mk.in | ||
emptyvars.mk.in | ||
expandlibs.py | ||
expandlibs_config.py | ||
expandlibs_exec.py | ||
expandlibs_gen.py | ||
find_OOM_errors.py | ||
gcc-stl-wrapper.template.h | ||
gcc_hidden.h | ||
install.bat | ||
link.py | ||
make-stl-wrappers.py | ||
milestone.txt | ||
moz.build | ||
mozunit.py | ||
msvc-stl-wrapper.template.h | ||
nsinstall.c | ||
nsinstall.py | ||
pathsub.c | ||
pathsub.h | ||
printconfigsetting.py | ||
printprereleasesuffix.py | ||
pythonpath.py | ||
rebuild_check.py | ||
recurse.mk | ||
rules.mk | ||
static-checking-config.mk | ||
stl-headers | ||
string-format.js | ||
system-headers | ||
version.mk | ||
version_win.pl |