fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
305 B12 linesraw
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
8all:
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)