Skip to content

Commit

Permalink
Update windows guide (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
cw789 authored Feb 27, 2023
1 parent f73b440 commit a7cb977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ behind this is that maintaining each sqlite's connection command pool is
complicated and error prone.
# Compiling NIF for Windows
## Compiling NIF for Windows
When compiling on Windows, you will need the [Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022) or equivalent toolchain. Please make sure you have the correct environment variables, including path to compiler and linker and architecture that matches `erl.exe` (likely x64).
You may also need to invoke `vcvarsall.bat amd64` _before_ running `mix`.
A guide is available at [guides/windows.md](./guides/windows.md)
## Contributing
Expand Down
3 changes: 2 additions & 1 deletion guides/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
> Exqlite uses an [Erlang NIF](https://erlang.org/doc/tutorial/nif.html) under the hood.
> Means calling a native implementation in C.
For Windows users this means compiling Exqlite does not magically just work.
For Windows users this means compiling Exqlite does not magically just work,
in case it's not able to use the precompiled versions of SQLite (using advanced configuration - compile flags).
Under the hood mix will try to compile the library with NMAKE on Windows.
For this, NMAKE and C++ build tools needs to be available.

Expand Down

0 comments on commit a7cb977

Please sign in to comment.