Skip to content

Commit 37c1e9f

Browse files
committed
Issue #584 solution incorporated
1 parent fed394f commit 37c1e9f

2 files changed

Lines changed: 380 additions & 365 deletions

File tree

buildTriceTool.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,20 @@ echo "----------------------------------------"
100100
# )
101101
#
102102
# Make sure the package path ("main.") matches your actual package.
103-
103+
#
104+
# Additionally:
105+
# -s —> strip the symbol table
106+
# -w —> strip DWARF debugging info
107+
#
104108
go install -ldflags "\
105109
-X 'main.version=$version' \
106110
-X 'main.commit=$commit' \
107111
-X 'main.date=$date' \
108112
-X 'main.branch=$origin - $branch' \
109113
-X 'main.gitState=$git_state' \
110114
-X 'main.gitStatus=$git_status' \
115+
-s \
116+
-w \
111117
" ./cmd/trice/...
112118

113119
echo "Build complete."

0 commit comments

Comments
 (0)