mirror of
https://github.com/oxalica/rust-overlay.git
synced 2025-10-06 00:02:40 +02:00
This has an artificial dependency on `pthreads` (a commonly needed one) combined with a `build.rs` to trigger cross-compilation in combination with compiling for the build platform.
12 lines
232 B
Makefile
12 lines
232 B
Makefile
# This Makefile is expected to be run inside nix-shell.
|
|
|
|
CARGO_FLAGS := --target x86_64-pc-windows-gnu
|
|
|
|
.PHONY: all
|
|
all: Cargo.toml Cargo.lock src/main.rs
|
|
cargo build $(CARGO_FLAGS)
|
|
|
|
.PHONY: test
|
|
run: all
|
|
cargo run $(CARGO_FLAGS)
|