summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-05-01 14:14:39 +0300
committerGitHub <noreply@github.com>2024-05-01 14:14:39 +0300
commit5007a4ebcced3b270fb5addc14111bbcfe211cb2 (patch)
treecaa13798f2f60406002cd8d126878bc29cea968e
parent23a55c3bca42585e35df33d8d6150f9b70b954b8 (diff)
remove go.d symbol/debug info with RelWithDebInfo (#17569)
-rw-r--r--packaging/cmake/Modules/NetdataGoTools.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/cmake/Modules/NetdataGoTools.cmake b/packaging/cmake/Modules/NetdataGoTools.cmake
index 9bb09cdc55..cc9e0e1112 100644
--- a/packaging/cmake/Modules/NetdataGoTools.cmake
+++ b/packaging/cmake/Modules/NetdataGoTools.cmake
@@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: GPL
-if(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
+if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(GO_LDFLAGS "-X github.com/netdata/netdata/go/go.d.plugin/pkg/buildinfo.Version=${NETDATA_VERSION}")
else()
set(GO_LDFLAGS "-w -s -X github.com/netdata/netdata/go/go.d.plugin/pkg/buildinfo.Version=${NETDATA_VERSION}")