File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tools/gyp/pylib/gyp/generator Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,12 @@ def CalculateGeneratorInputInfo(params):
201
201
quiet_cmd_link = LINK($(TOOLSET)) $@
202
202
quiet_cmd_link_host = LINK($(TOOLSET)) $@
203
203
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
204
+ # If building on MacOS, --start-group and --end-group won't be supported in clang.
205
+ ifeq ($(shell uname -s),Darwin) then
206
+ cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
207
+ else
204
208
cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
209
+ endif
205
210
206
211
# Other shared-object link notes:
207
212
# - Set SONAME to the library filename so our binaries don't reference
You can’t perform that action at this time.
0 commit comments