about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-08-21 22:30:46 -0700
committerGitHub <noreply@github.com>2016-08-21 22:30:46 -0700
commitc44534ef5a6b95cb032c6ce28c8893cf530903b9 (patch)
tree64defd927884f2ffdd0319e3e7ca41ff49dff311 /src/libsyntax/parse/parser.rs
parent42584d36f6a2d8021c0b642ec0cbf1afed750f32 (diff)
parentc08b7b9f754c6969e3cc630cfea76a8b8ce8876b (diff)
downloadrust-c44534ef5a6b95cb032c6ce28c8893cf530903b9.tar.gz
rust-c44534ef5a6b95cb032c6ce28c8893cf530903b9.zip
Auto merge of #35821 - nbaksalyar:solaris-trans-fix, r=alexcrichton
Fix linker on Solaris/Illumos

This patch provides a fix for the `GnuLinker::export_symbols` function that currently relies on a `--retain-symbols-file` option which is not supported by the Solaris & Illumos linker.

Instead, a [version script](https://www.gnu.org/software/gnulib/manual/html_node/LD-Version-Scripts.html) is used on this platform to achieve the same goal. Here's an example of a similar approach in LLVM's CMake script: https://github.com/llvm-mirror/llvm/blob/master/cmake/modules/AddLLVM.cmake#L88-L94.

Perhaps other platforms like OpenBSD could benefit from this as well. /cc @semarie
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions