From 1589ceaaf9251263de319d0e256abaf46195ba04 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Tue, 9 Jan 2024 00:03:44 +0900 Subject: [PATCH] Revert --- configure | 40 ---------------------------------------- src/Makevars.in | 7 ++----- src/Makevars.win.in | 3 +-- 3 files changed, 3 insertions(+), 47 deletions(-) diff --git a/configure b/configure index 33977fd..b9468a3 100755 --- a/configure +++ b/configure @@ -1,37 +1,3 @@ -#!/bin/sh - -usage() -{ - cat - < src/Makevars # Uncomment this to debug diff --git a/src/Makevars.in b/src/Makevars.in index a850383..f281805 100644 --- a/src/Makevars.in +++ b/src/Makevars.in @@ -1,11 +1,8 @@ -TARGET = @TARGET@ -TARGET_ARG = @TARGET_ARG@ - # TODO VENDORING = yes OFFLINE_OPTION = --offline -LIBDIR = ./rust/target/$(TARGET)/release +LIBDIR = ./rust/target/release PKG_LIBS = -L$(LIBDIR) -lstring2path STATLIB = $(LIBDIR)/libstring2path.a @@ -22,7 +19,7 @@ $(STATLIB): cp ./cargo_vendor_config.toml ./rust/.cargo/config.toml; \ fi - @BEFORE_CARGO_BUILD@ cd ./rust && cargo build --jobs 1 $(TARGET_ARG) --lib --release $(OFFLINE_OPTION) + @BEFORE_CARGO_BUILD@ cd ./rust && cargo build --jobs 1 --lib --release $(OFFLINE_OPTION) @AFTER_CARGO_BUILD@ C_clean: diff --git a/src/Makevars.win.in b/src/Makevars.win.in index 08eaa3b..450c706 100644 --- a/src/Makevars.win.in +++ b/src/Makevars.win.in @@ -1,5 +1,4 @@ TARGET = x86_64-pc-windows-gnu -TARGET_ARG = --target $(TARGET) # Rtools42 doesn't have the linker in the location that cargo expects, so we # need to overwrite it via configuration. @@ -28,7 +27,7 @@ $(STATLIB): cp ./cargo_vendor_config.toml ./rust/.cargo/config.toml; \ fi - @BEFORE_CARGO_BUILD@ cd ./rust && cargo build --jobs 1 $(TARGET_ARG) --lib --release $(OFFLINE_OPTION) + @BEFORE_CARGO_BUILD@ cd ./rust && cargo build --jobs 1 --target $(TARGET) --lib --release $(OFFLINE_OPTION) @AFTER_CARGO_BUILD@ C_clean: