From 8c609afb70cc388226d802f18c3fab52c03832ee Mon Sep 17 00:00:00 2001 From: 4o3F <4o3f@proton.me> Date: Sun, 6 Oct 2024 21:02:07 +0800 Subject: [PATCH] fix: try fix CI build --- .cargo/config.toml | 4 ++-- scripts/build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 29a7f7e..54d36a2 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,5 @@ [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] -[target.x86_64-unknown-linux-gnu] -rustflags = ["-C", "target-feature=+crt-static"] +# [target.x86_64-unknown-linux-gnu] +# rustflags = ["-C", "linker=clang", "-C", "target-feature=+crt-static"] diff --git a/scripts/build.sh b/scripts/build.sh index 0d1e68f..38653f5 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -89,7 +89,7 @@ if [[ "$os_family" == "Windows" ]]; then export OPENCV_MSVC_CRT="static" cargo build --release elif [[ "$os_family" == "Linux" ]]; then - cargo build --release --target x86_64-unknown-linux-gnu + cargo build --release else cargo build --release fi \ No newline at end of file