File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,12 @@ endif
39
39
LD_FLAGS = $(BUILTIN_LD_FLAGS ) $(EXTRA_LD_FLAGS )
40
40
41
41
# BUILTIN_GC_FLAGS are the internal flags used to pass compiler.
42
- BUILTIN_GC_FLAGS ?= all=-trimpath="$$HOME"
42
+ BUILTIN_GC_FLAGS =
43
43
# EXTRA_GC_FLAGS are the caller-provided flags to pass to the compiler.
44
44
EXTRA_GC_FLAGS =
45
45
# GC_FLAGS are the union of the above two BUILTIN_GC_FLAGS and EXTRA_GC_FLAGS.
46
46
GC_FLAGS = $(BUILTIN_GC_FLAGS ) $(EXTRA_GC_FLAGS )
47
47
48
- ASM_FLAGS ?= all=-trimpath="$$HOME"
49
-
50
- # TRIMPATH contains arguments to be passed to go to strip paths on Go 1.13 and
51
- # newer.
52
- TRIMPATH ?= $(shell [ "$$($(GO ) version | awk '{print $$3}' | sed -e 's/^[^.]*\.//;s/\..*$$//;') " -ge 13 ] && echo -trimpath)
53
-
54
48
# RONN is the name of the 'ronn' program used to generate man pages.
55
49
RONN ?= ronn
56
50
# RONN_EXTRA_ARGS are extra arguments given to the $(RONN) program when invoked.
@@ -185,8 +179,7 @@ BUILD = GOOS=$(1) GOARCH=$(2) \
185
179
$(GO ) build \
186
180
-ldflags="$(LD_FLAGS ) " \
187
181
-gcflags="$(GC_FLAGS ) " \
188
- -asmflags="$(ASM_FLAGS ) " \
189
- $(TRIMPATH ) \
182
+ -trimpath \
190
183
-o ./bin/git-lfs$(3 ) $(BUILD_MAIN )
191
184
192
185
# BUILD_TARGETS is the set of all platforms and architectures that Git LFS is
You can’t perform that action at this time.
0 commit comments