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

Create a TranslationUnit by loading ast file (aka precompiled header). #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

habemus-papadum
Copy link
Contributor

The first of a series of PRs related to #416

@habemus-papadum
Copy link
Contributor Author

Dies on windows. Suggestions welcome!

open(header, "w") do io
write(io, "void foo();")
end
run(`$(clang()) -x c $header -emit-ast -o $pch`);
Copy link
Member

Choose a reason for hiding this comment

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

To use Clang on Windows, we need some setups to let Clang know where to find those system headers and that's a bit tricky to get it right. If the precompiled header is not very large, we can use pre-generatad the pch files.

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

Successfully merging this pull request may close these issues.

None yet

2 participants