summaryrefslogtreecommitdiffstats
path: root/tests/run-make/windows-safeseh/Makefile
blob: d6a403961d7918ffa2b526ad1a6ced03ff2606de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# only-windows
# needs-rust-lld

include ../tools.mk

all: foo bar

# Ensure that LLD can link when an .rlib contains a synthetic object
# file referencing exported or used symbols.
foo:
	$(RUSTC) -C linker=rust-lld foo.rs

# Ensure that LLD can link when /WHOLEARCHIVE: is used with an .rlib.
# Previously, lib.rmeta was not marked as (trivially) SAFESEH-aware.
bar: baz
	$(RUSTC) -C linker=rust-lld -C link-arg=/WHOLEARCHIVE:libbaz.rlib bar.rs

baz:
	$(RUSTC) baz.rs