-
Notifications
You must be signed in to change notification settings - Fork 10.5k
runtime: make LLP64 clean #11976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: make LLP64 clean #11976
Conversation
@swift-ci please test |
Build failed |
Don't think that the foundation failure is related (network flakiness?) @swift-ci please test Linux platform |
include/swift/Runtime/Metadata.h
Outdated
@@ -660,7 +660,7 @@ const ExtraInhabitantsValueWitnessTable METATYPE_VALUE_WITNESS_SYM(Bo); // Built | |||
|
|||
/// Return the value witnesses for unmanaged pointers. | |||
static inline const ValueWitnessTable &getUnmanagedPointerValueWitnesses() { | |||
#ifdef __LP64__ | |||
#ifdef __POINTER_WIDTH__ == 64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I uploaded the wrong version This should be #if __POINTER_WIDTH__ == 64
.
This is a blanket pass replacing use of `__LP64__` with `__POINTER_WIDTH__ == 64`. The latter is more expressive and also LLP64 clean. This change is needed to enable support for Windows x86_64 which is a LLP64 environment.
@swift-ci please test |
Build failed |
Build failed |
The macOS failure seems unrelated. "ld: can't write output file: - for architecture i386" @swift-ci please test macOS platform |
This is a blanket pass replacing use of
__LP64__
with__POINTER_WIDTH__ == 64
. The latter is more expressive and also LLP64clean. This change is needed to enable support for Windows x86_64 which
is a LLP64 environment.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.