Skip to content

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

Open
habemus-papadum wants to merge 1 commit into
JuliaInterop:masterfrom
habemus-papadum:np/load_ast
Open

Create a TranslationUnit by loading ast file (aka precompiled header).#422
habemus-papadum wants to merge 1 commit into
JuliaInterop:masterfrom
habemus-papadum:np/load_ast

Conversation

@habemus-papadum

Copy link
Copy Markdown
Contributor

The first of a series of PRs related to #416

@habemus-papadum

Copy link
Copy Markdown
Contributor Author

Dies on windows. Suggestions welcome!

Comment thread test/ast.jl
open(header, "w") do io
write(io, "void foo();")
end
run(`$(clang()) -x c $header -emit-ast -o $pch`);

Copy link
Copy Markdown
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.

2 participants