@@ -211,6 +211,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
211
211
fmt .Fprintf (h , "goos %s goarch %s\n " , cfg .Goos , cfg .Goarch )
212
212
fmt .Fprintf (h , "import %q\n " , p .ImportPath )
213
213
fmt .Fprintf (h , "omitdebug %v standard %v local %v prefix %q\n " , p .Internal .OmitDebug , p .Standard , p .Internal .Local , p .Internal .LocalPrefix )
214
+ if cfg .BuildTrimpath {
215
+ fmt .Fprintln (h , "trimpath" )
216
+ }
214
217
if p .Internal .ForceLibrary {
215
218
fmt .Fprintf (h , "forcelibrary\n " )
216
219
}
@@ -1116,6 +1119,9 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
1116
1119
fmt .Fprintf (h , "buildmode %s goos %s goarch %s\n " , cfg .BuildBuildmode , cfg .Goos , cfg .Goarch )
1117
1120
fmt .Fprintf (h , "import %q\n " , p .ImportPath )
1118
1121
fmt .Fprintf (h , "omitdebug %v standard %v local %v prefix %q\n " , p .Internal .OmitDebug , p .Standard , p .Internal .Local , p .Internal .LocalPrefix )
1122
+ if cfg .BuildTrimpath {
1123
+ fmt .Fprintln (h , "trimpath" )
1124
+ }
1119
1125
1120
1126
// Toolchain-dependent configuration, shared with b.linkSharedActionID.
1121
1127
b .printLinkerConfig (h , p )
0 commit comments