Skip to content

Conversation

@aschwaighofer
Copy link
Contributor

@aschwaighofer aschwaighofer commented Mar 9, 2023

We need to disable opaque pointers when we compiler the runtime the linker complains:

  ld: Opaque pointers are only supported in -opaque-pointers mode

Alternatively, we could pass the opaque-pointers flag to the linker but then it would complain about the swiftc generated files which still use typed pointers.
Until swiftc is fixed, disable opaque pointers for .cpp runtime files.

rdar://106515243

@aschwaighofer
Copy link
Contributor Author

@swift-ci test

We need to disable opaque pointers when we compiler the runtime the
linker complains:

```
  ld: Opaque pointers are only supported in -opaque-pointers mode
```

Alternatively, we could pass the opaque-pointers flag to the linker but
then it would complain about the swiftc generated files which still use
typed pointers.
Until swiftc is fixed, disable opaque pointers for .cpp runtime files.

rdar://106515243
@aschwaighofer aschwaighofer force-pushed the no_opaque_pointers_under_lto branch from 283a32d to 49332f8 Compare March 9, 2023 21:28
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@aschwaighofer
Copy link
Contributor Author

preset=stdlib_S_standalone_minimal_macho_x86_64,build,test
@swift-ci please test with toolchain and preset

@aschwaighofer aschwaighofer merged commit eb3c043 into swiftlang:main Mar 10, 2023
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.

1 participant