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:
Matthew Parkinson
2019-05-05 19:58:37 +01:00
committed by GitHub
parent 0b64536be4
commit 8fcedfc290
8 changed files with 74 additions and 11 deletions

View File

@@ -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:
```