Fix the GCC build (#40)
* Make it compile with GCC. * Add GCC to CI. * Add warning to documentation about using GCC.
This commit is contained in:
committed by
GitHub
parent
0b64536be4
commit
8fcedfc290
@@ -36,8 +36,10 @@ using the Visual Studio compiler.
|
||||
# Building on macOS, Linux or FreeBSD
|
||||
Snmalloc has very few dependencies, CMake, Ninja, Clang 6.0 or later and a C++17
|
||||
standard library.
|
||||
Building with GCC is currently not supported because GCC lacks support for the
|
||||
`selectany` attribute to specify variables in a COMDAT.
|
||||
Building with GCC is currently not recommended because GCC lacks support for the
|
||||
`selectany` attribute to specify variables in a COMDAT.
|
||||
It will, however, build with GCC-7, but some of global variables will be
|
||||
preemptible.
|
||||
|
||||
To build a debug configuration:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user