Skip to content

Commit

Permalink
Updating the build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Monday committed Dec 11, 2024
1 parent d6ad197 commit ab80127
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To build with Visual Studio:
```
mkdir build
cd build
cmake -G "Visual Studio 15 2019 Win64" ..
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config Debug
cmake --build . --config Release
cmake --build . --config RelWithDebInfo
Expand Down Expand Up @@ -112,8 +112,8 @@ target_link_libraries([lib_name] PRIVATE snmalloc_lib)
You will also need to compile the relevant parts of snmalloc itself. Create a new file with the following contents and compile it with the rest of your application.

```c++
#include "snmalloc/src/override/malloc.cc"
#include "snmalloc/src/override/new.cc"
#include "src/snmalloc/override/malloc.cc"
#include "src/snmalloc/override/new.cc"
```

To enable the `reallocarray` symbol export, this can be added to your cmake command line.
Expand Down

0 comments on commit ab80127

Please sign in to comment.