From f28dfe22d678632bfcd98a64354be92e4cfe93f0 Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Fri, 3 Feb 2023 21:32:47 +1030 Subject: [PATCH] Fix create lib after move into costerrs project --- FastCoster/CosterRs/create-lib.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FastCoster/CosterRs/create-lib.sh b/FastCoster/CosterRs/create-lib.sh index c988997..53570ae 100644 --- a/FastCoster/CosterRs/create-lib.sh +++ b/FastCoster/CosterRs/create-lib.sh @@ -41,10 +41,11 @@ fi rust_target="${rust_arch}-${rust_platform}${rust_abi}" # # Build library in debug or release -build_args=(--manifest-path ../costerrs/Cargo.toml --target "${rust_target}") +build_args=(--manifest-path ../Cargo.toml --target "${rust_target}") if [[ "$CONFIGURATION" == "Release" ]]; then rust_config="release" env PATH="${build_path}" cargo build --release "${build_args[@]}" +# Using release even for debug, as we can't build release without paying elif [[ "$CONFIGURATION" == "Debug" ]]; then rust_config="release" env PATH="${build_path}" cargo build --release "${build_args[@]}" @@ -53,4 +54,4 @@ else fi # # Copy the built library to the derived files directory -cp -v "../costerrs/target/${rust_target}/${rust_config}/libcoster_rs.a" ${DERIVED_FILES_DIR} +cp -v "../target/${rust_target}/${rust_config}/libcoster_rs.a" ${DERIVED_FILES_DIR}