Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/gyp/pylib/gyp/xcode_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,8 @@ def GetLibtoolflags(self, configname):
libtoolflags = []

for libtoolflag in self._Settings().get('OTHER_LDFLAGS', []):
if libtoolflag == "--coverage":
Copy link
Contributor

@refack refack Oct 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok after some digging is seem like the native libtool does not accept any flag that starts with --
Can I suggest this instead of the whole for expression (From L948 to L955)

    self.configname = configname
    libtoolflags = self._Settings().get('OTHER_LDFLAGS', [])
    # Native macOS libtool does not except any flags with '--' prefix
    libtoolflags = [f for f in libtoolflags if not f.startswith('--')]
    # TODO(thakis): ARCHS?

continue
libtoolflags.append(libtoolflag)
# TODO(thakis): ARCHS?

Expand Down