diff options
| author | Samuel Holland <samuel@sholland.org> | 2018-09-16 16:35:41 +0000 |
|---|---|---|
| committer | Samuel Holland <samuel@sholland.org> | 2018-11-15 13:53:15 +0000 |
| commit | 8c8ff6a4e14fc8c9ded15b37a910127bbce6cda2 (patch) | |
| tree | 4e3bd573ebd5188314c2cc54492e7306a2143aeb /src | |
| parent | 99e3fca27d141e2d100ebaf5d5a4104234ae201a (diff) | |
| download | rust-8c8ff6a4e14fc8c9ded15b37a910127bbce6cda2.tar.gz rust-8c8ff6a4e14fc8c9ded15b37a910127bbce6cda2.zip | |
test/linkage-visibility: Ignore on musl targets
DynamicLibrary uses libc's dlsym() function internally to find symbols. Some implementations of dlsym(), like musl's, only look at dynamically- exported symbols, as found in shared libraries. To also export symbols from the main executable, we would need to pass --export-dynamic to the linker. Since this flag isn't available everywhere, ignore the test for now.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs b/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs index 4ea3d0d0d0a..2aaa28341ad 100644 --- a/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs +++ b/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-musl - dlsym doesn't see symbols without "-C link-arg=-Wl,--export-dynamic" + #![feature(rustc_private)] // We're testing linkage visibility; the compiler warns us, but we want to |
