]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/obey-crate-type-flag/Makefile
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / run-make-fulldeps / obey-crate-type-flag / Makefile
1 include ../tools.mk
2
3 # check that rustc builds all crate_type attributes
4 # delete rlib
5 # delete whatever dylib is made for this system
6 # check that rustc only builds --crate-type flags, ignoring attributes
7 # fail if an rlib was built
8 all:
9         $(RUSTC) test.rs
10         $(call REMOVE_RLIBS,test)
11         $(call REMOVE_DYLIBS,test)
12         $(RUSTC) --crate-type dylib test.rs
13         $(call REMOVE_RLIBS,test) && exit 1 || exit 0