diff options
| author | Ingvar Stepanyan <me@rreverser.com> | 2017-02-03 14:58:13 +0000 |
|---|---|---|
| committer | Ingvar Stepanyan <me@rreverser.com> | 2017-02-10 17:31:04 +0000 |
| commit | eed6168a3ba300c7166a8072347505fc6164c8bf (patch) | |
| tree | e0bf103de3d3dc8170da2c771ffe42f5aaa0a486 /src/test/run-pass/thinlto | |
| parent | bc524d3d559e7b514edec6e99feb149995db7f1d (diff) | |
| download | rust-eed6168a3ba300c7166a8072347505fc6164c8bf.tar.gz rust-eed6168a3ba300c7166a8072347505fc6164c8bf.zip | |
Add Emscripten-specific linker
It claims to accept most GNU linker options, but in fact most of them have no effect and instead it requires some special options which are easier to handle in a separate trait. Currently added: - `export_symbols`: works on executables as special Emscripten case since staticlibs/dylibs aren't compiled to JS, while exports are required to be accessible from JS. Fixes #39171. - `optimize` - translates Rust's optimization level to Emscripten optimization level (whether passed via `-C opt-level=...` or `-O...`). Fixes #36899. - `debuginfo` - translates debug info; Emscripten has 5 debug levels while Rust has 3, so chose to translate `-C debuginfo=1` to `-g3` (preserves whitespace, variable and function names for easy debugging). Fixes #36901. - `no_default_libraries` - tells Emscripten to exlude `memcpy` and co.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
