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

Windows support #52

Open
docelic opened this issue May 16, 2020 · 3 comments
Open

Windows support #52

docelic opened this issue May 16, 2020 · 3 comments

Comments

@docelic
Copy link
Collaborator

docelic commented May 16, 2020

Trying to compile bindgen on Windows produces first error in find_clang.cr on:

UNAME_S = `uname -s`.chomp
@docelic
Copy link
Collaborator Author

docelic commented May 18, 2020

We need to replace this with a macro:

{% if flag?(:darwin) %} # :linux, :win32, :windows, :bits64, :bits32

@docelic
Copy link
Collaborator Author

docelic commented May 18, 2020

Updated in latest commit. Will keep the ticket open for further issues.

@dsisnero
Copy link

find_llvm_config_binary - Need to use ENV["PATH"].split(Process::PATH_DELIMITER)
also, in same function - need to account for file ext of ".exe" , not sure where to put this.
Also replace the search_paths: in YAML to
#{paths.try(&.map { |p| %(- '#{p}') }.join("\n ")) || ENV["PATH"].split(Process::PATH_DELIMITER).map { |p| %(- '#{p}') }.join("\n ")}

this is because "" in windows paths and this is escape character for YAML - replace double quote to single quote

Same thing for #find_clang_binary

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

No branches or pull requests

2 participants