From 05764e2e77a27d08999d43dfa9490c14d5dddd63 Mon Sep 17 00:00:00 2001 From: Joshua Groves Date: Tue, 5 Jun 2018 20:54:02 -0600 Subject: [PATCH] Add `debug-version` target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ab576ea..8fdc529 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ FULL_LIBRARY_PATH=$(CURDIR)/target/debug LIBRARY=target/debug/libportability.$(LIB_EXTENSION) LIBRARY_FAST=target/release/libportability.$(LIB_EXTENSION) -.PHONY: all rebuild debug release binding run cts cts-pick cts-debug clean cherry +.PHONY: all rebuild debug debug-version release binding run cts cts-pick cts-debug clean cherry all: $(TARGET) @@ -53,6 +53,9 @@ rebuild: debug: cargo build --manifest-path libportability/Cargo.toml --features "$(BACKEND) debug" +debug-version: + cargo rustc --manifest-path libportability/Cargo.toml --features "$(BACKEND) debug" -- -Clink-arg="-current_version 1.0.0" -Clink-arg="-compatibility_version 1.0.0" + release: $(LIBRARY_FAST) binding: $(BINDING)