Skip to content

Commit

Permalink
Fix build (#155)
Browse files Browse the repository at this point in the history
* fix build

* b

* f

* f
wq

* f
  • Loading branch information
ibigbug authored Nov 6, 2023
1 parent 39b87a5 commit 3dfc24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clash_lib/src/proxy/utils/socket_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use tokio::{
net::{TcpSocket, TcpStream, UdpSocket},
time::timeout,
};

#[cfg(target_os = "windows")]
use tracing::warn;

use super::Interface;
Expand Down
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -xe
[ ! -d "target/artifacts" ] && mkdir -p target/artifacts

for TARGET in $1; do
TARGET=`echo "$TARGET" | tr -d '[:space:]' | tr -d '\n' | tr -d '\r'`
echo "building for $TARGET"
rustup target add $TARGET
cargo build -p clash --target $TARGET --release
Expand Down

0 comments on commit 3dfc24b

Please sign in to comment.