]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/glibc-staticlib-args/Makefile
Rollup merge of #107731 - RalfJung:interpret-discriminant, r=cjgillot
[rust.git] / tests / run-make-fulldeps / glibc-staticlib-args / Makefile
1 # only-gnu
2 # only-linux
3
4 include ../tools.mk
5
6 # This ensures that std::env::args works in a library called from C on glibc Linux.
7
8 all:
9         $(RUSTC) --crate-type=staticlib library.rs
10         $(CC) program.c $(call STATICLIB,library) $(call OUT_EXE,program) \
11                 $(EXTRACFLAGS) $(EXTRACXXFLAGS)
12         $(call RUN,program)