Enable C++17 (#4623)

This commit is contained in:
Alexander Shabalin
2021-01-14 19:16:53 +03:00
committed by Nikolay Krasko
parent ee9c2f0e33
commit a362742a37
15 changed files with 28 additions and 61 deletions
@@ -68,7 +68,7 @@ open class CompileToBitcode @Inject constructor(
// Used flags provided by original build of allocator C code.
listOf("-std=gnu11", "-O3", "-Wall", "-Wextra", "-Werror")
Language.CPP ->
listOfNotNull("-std=c++14", "-Werror", "-O2",
listOfNotNull("-std=c++17", "-Werror", "-O2",
"-Wall", "-Wextra",
"-Wno-unused-parameter", // False positives with polymorphic functions.
"-fPIC".takeIf { !HostManager().targetByName(target).isMINGW })