Skip to content

Commit

Permalink
Fix regenerate script on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Dec 26, 2018
1 parent f8d386b commit f6f4e09
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion protobuf/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@ where_am_i=$(cd ..; pwd)
rm -rf tmp-generated
mkdir tmp-generated

case `uname` in
Linux)
exe_suffix=""
;;
MSYS_NT*)
exe_suffix=".exe"
;;
esac

protoc \
--plugin=protoc-gen-rust=$where_am_i/target/debug/protoc-gen-rust \
--plugin=protoc-gen-rust="$where_am_i/target/debug/protoc-gen-rust$exe_suffix" \
--rust_out tmp-generated \
--rust_opt 'serde_derive=true serde_derive_cfg=serde' \
-I../proto \
Expand Down

0 comments on commit f6f4e09

Please sign in to comment.