Skip to content

Commit

Permalink
protoc-wrapper: replicate default protoc behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rvolosatovs committed Jul 27, 2017
1 parent dd12a9b commit 79686a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protoc-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ for arg in $@; do
esac
done

if [ ${#includes[@]} -eq 0 ]; then
# replicate protoc behavior
includes+=("-I.")
fi

protoc_cmd="protoc ${includes[@]} ${outs[@]} ${args[@]}"
protoc_c_cmd="protoc-c ${includes[@]} ${c_out} ${args[@]}"

Expand Down

0 comments on commit 79686a5

Please sign in to comment.