You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/05/21 03:58:29 UTC
(incubator-devlake) branch main updated: fix: missing `make build-plugin-debug` (#7492)
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new ab524a8de fix: missing `make build-plugin-debug` (#7492)
ab524a8de is described below
commit ab524a8deb3ee8cf1bc85ff9eecf9b1bf136009d
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Tue May 21 11:58:23 2024 +0800
fix: missing `make build-plugin-debug` (#7492)
---
backend/Makefile | 3 +++
backend/scripts/build-plugins.sh | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/backend/Makefile b/backend/Makefile
index 21106ed4b..30807416c 100644
--- a/backend/Makefile
+++ b/backend/Makefile
@@ -48,6 +48,9 @@ swag: mock
build-plugin:
scripts/build-plugins.sh
+build-plugin-debug:
+ DEVLAKE_DEBUG=1 scripts/build-plugins.sh
+
build-server: swag
VERSION=$(VERSION) scripts/build-server.sh
diff --git a/backend/scripts/build-plugins.sh b/backend/scripts/build-plugins.sh
index 565da7eaa..03fb7b4f9 100755
--- a/backend/scripts/build-plugins.sh
+++ b/backend/scripts/build-plugins.sh
@@ -66,7 +66,7 @@ fi
PIDS=""
for PLUG in $PLUGINS; do
NAME=$(basename $PLUG)
- echo "Building plugin $NAME to bin/plugins/$NAME/$NAME.so with args: $*"
+ echo "Building plugin $NAME to bin/plugins/$NAME/$NAME.so with args: $* --gcflags="$GCFLAGS""
go build -buildmode=plugin --gcflags="$GCFLAGS" -o $PLUGIN_OUTPUT_DIR/$NAME/$NAME.so $PLUG/*.go &
PIDS="$PIDS $!"
# avoid too many processes causing signal killed