You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DENSITY can be built on a number of platforms. It uses the [premake](http://premake.github.io/) build system.
70
75
71
-
It was developed and optimized against Clang/LLVM, but GCC is also supported (please use a recent version for maximum performance).
72
-
At this time MSVC is *not* supported, but it's straightforward to install clang for windows.
73
-
74
-
The following assumes you already have *git* installed.
76
+
It was developed and optimized against Clang/LLVM which makes it the preferred compiler, but GCC and MSVC are also supported. Please use the latest compiler versions for best performance.
75
77
76
78
**Mac OS X**
77
79
78
80
On OS X, Clang/LLVM is the default compiler, which makes things simpler.
79
81
80
-
1) Download and install [premake5](http://premake.github.io/) for OS X and make it available in your path.
82
+
1) First things first, install the [homebrew package manager](https://brew.sh/).
On Linux, Clang/LLVM is not always available by default.
109
+
On Linux, Clang/LLVM is not always available by default, but can be easily added thanks to the provided package managers.
110
+
The following example assumes a Debian or Ubuntu distribution with *apt-get*.
93
111
94
-
1)Install Clang/LLVM *(optional if GCC is installed)*if you don't have it already (on Debian distributions for example, *sudo apt-get install clang* should do the trick)
112
+
1)From the command line, install Clang/LLVM (*optional*, GCC is also supported if Clang/LLVM can't be used) and other prerequisites.
95
113
96
-
2) Download and install [premake5](http://premake.github.io/) for Linux and make it available in your path.
2)We'll use *GNU make* to build the project, on Windows it's not part of the default toolset but you can [download a port here](http://gnuwin32.sourceforge.net/packages/make.htm). Make it available in your path.
141
+
2)From the command line, get the prerequisites :
113
142
114
-
3) Microsoft Visual Studio is required as we will use its linker, [get it here](https://www.visualstudio.com/en-us/products/free-developer-offers-vs.aspx).
143
+
```
144
+
choco install git wget unzip
145
+
```
115
146
116
-
4) Now we can install Clang/LLVM for Windows, and thanks to the **ClangOnWin** project it's easy ! You can [download it here](http://sourceforge.net/projects/clangonwin/). Make it available in your path.
147
+
3) Install the [Visual Studio IDE community edition](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community) if you don't already have it.
117
148
118
-
5) Download and install [premake5](http://premake.github.io/) for Windows and make it available in your path (edit the Path environment variable).
149
+
4) Download and install [Clang/LLVM for Windows](http://releases.llvm.org/5.0.1/LLVM-5.0.1-win64.exe) (*optional*, MSVC compiler is also supported but resulting binaries might be slower).
119
150
120
-
6) Run the following from the command line :
151
+
5) Open a [developer command prompt](https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs) and type :
And that's it ! You can now use the integrated in-memory benchmark to test your files (the *benchmark* or *benchmark.exe* binary in the build/bin/Release/ folder).
168
+
And that's it ! If you open the Visual Studio IDE, in the solutions explorer by right-clicking on project names you can change platform toolsets, if you also want to try other compilers.
set PATH=C:\Program Files\7-Zip;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\projects\density\build\mingw64\bin\
0 commit comments