We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed394f commit 37c1e9fCopy full SHA for 37c1e9f
2 files changed
buildTriceTool.sh
@@ -100,14 +100,20 @@ echo "----------------------------------------"
100
# )
101
#
102
# Make sure the package path ("main.") matches your actual package.
103
-
+#
104
+# Additionally:
105
+# -s —> strip the symbol table
106
+# -w —> strip DWARF debugging info
107
108
go install -ldflags "\
109
-X 'main.version=$version' \
110
-X 'main.commit=$commit' \
111
-X 'main.date=$date' \
112
-X 'main.branch=$origin - $branch' \
113
-X 'main.gitState=$git_state' \
114
-X 'main.gitStatus=$git_status' \
115
+ -s \
116
+ -w \
117
" ./cmd/trice/...
118
119
echo "Build complete."
0 commit comments