Skip to content
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

Fix stdio.h include problem #414

Merged
merged 4 commits into from Oct 22, 2019
Merged

Conversation

ErikMcClure
Copy link
Contributor

This fixes #401 by compensating for what is probably an LLVM bug in copyAttributesFrom which doesn't actually copy over the comdat attributes. Either that, or LLVM doesn't consider comdat a traditional attribute. The actual fix here is a single line of code: newfn->setComdat(fn->getComdat());. Everything else is either just to improve MSVC compatibility, or is the stdio workaround being removed from the tests.

A separate bug may need to be filed upstream to LLVM.

Copy link
Member

@elliottslaughter elliottslaughter left a comment

Choose a reason for hiding this comment

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

One comment, otherwise looks good. Thanks for taking the time to get to the bottom of this!

src/tcwrapper.cpp Outdated Show resolved Hide resolved
@elliottslaughter elliottslaughter merged commit 8d12627 into terralang:master Oct 22, 2019
@elliottslaughter
Copy link
Member

Merged, thanks again!

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.

Terra Cannot Import Inlined C Functions
2 participants