remove go.d symbol/debug info with RelWithDebInfo (#17569)
Ilya Mashchenko committed
May 1, 2024 at 14:14 UTC
5007a4ebcced3b270fb5addc14111bbcfe211cb2
1 file changed
+1
-1
packaging/cmake/Modules/NetdataGoTools.cmake
+1
-1
@@ -4,7 +4,7 @@
4
#
5
# SPDX-License-Identifier: GPL
6
7
-if(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
7
+if(CMAKE_BUILD_TYPE STREQUAL Debug)
8
set(GO_LDFLAGS "-X github.com/netdata/netdata/go/go.d.plugin/pkg/buildinfo.Version=${NETDATA_VERSION}")
9
else()
10
set(GO_LDFLAGS "-w -s -X github.com/netdata/netdata/go/go.d.plugin/pkg/buildinfo.Version=${NETDATA_VERSION}")