Skip to content

Conversation

@ljmf00-wekaio
Copy link

No description provided.

Comment on lines +287 to +294
return !(triple.isOSBinFormatMachO() ||
#if LDC_LLVM_VER >= 500
triple.isOSBinFormatWasm()
#else
triple.getArch() == llvm::Triple::wasm32 ||
triple.getArch() == llvm::Triple::wasm64
#endif
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return !(triple.isOSBinFormatMachO() ||
#if LDC_LLVM_VER >= 500
triple.isOSBinFormatWasm()
#else
triple.getArch() == llvm::Triple::wasm32 ||
triple.getArch() == llvm::Triple::wasm64
#endif
);
return !(triple.isOSBinFormatMachO() || triple.isOSBinFormatWasm());

Even if isOSBinFormatWasm was added in llvm 5, ldc only supports >=llvm-15 so LDC_LLVM_VER will always be >= 1500

Copy link
Author

Choose a reason for hiding this comment

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

This was picked from older code, before it got removed. I'll remove this, since llvm-5 is no longer supported by LDC.

@kinke
Copy link
Member

kinke commented Sep 7, 2024

Alternative in #4748, with a proper test case and leaving @weak as no-comdats.

@ljmf00-wekaio
Copy link
Author

Superseded by #4748 .

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