mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
469 B
Makefile
16 lines
469 B
Makefile
# This test checks that dynamic Rust linking with C does not encounter any errors, with dynamic dependencies given preference over static.
|
|
# See https://github.com/rust-lang/rust/issues/10434
|
|
|
|
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
# ignore-macos
|
|
#
|
|
# This hits an assertion in the linker on older versions of osx apparently
|
|
|
|
all: $(call DYLIB,cfoo)
|
|
$(RUSTC) foo.rs -C prefer-dynamic
|
|
$(RUSTC) bar.rs
|
|
$(call RUN,bar)
|
|
$(call REMOVE_DYLIBS,cfoo)
|
|
$(call FAIL,bar)
|