Skip to content

Conversation

daveinglis
Copy link
Contributor

  • fix adding -lc++ to OTHER_LDFLAGS to match native build system.
  • remove OTHER_LDRFLAGS setting

- fix adding -lc++ to OTHER_LDFLAGS to match native build system.
- remove OTHER_LDRFLAGS setting
@daveinglis
Copy link
Contributor Author

@swift-ci test

// We currently deliberately do not support Swift ObjC interface headers.
settings[.SWIFT_INSTALL_OBJC_HEADER] = "NO"
settings[.SWIFT_OBJC_INTERFACE_HEADER_NAME] = ""
settings[.OTHER_LDRFLAGS] = []
Copy link
Contributor

Choose a reason for hiding this comment

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

This is set because OTHER_LDRFLAGS defaults to OTHER_LDFLAGS, and this might've been on purpose if we wanted to set linker flags without those applying to ld -r invocations (e.g. when producing mh_objects).

Let's double check whether we actually mean to remove this, and if not, document via a code comment why it's empty.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the original purpose was to avoid trying to link frameworks when producing object files as part of ld -r.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants