[K/N] Fix runtime compilation flags.

This commit is contained in:
Alexander Shabalin
2021-09-21 19:20:18 +03:00
committed by Space
parent f4c5a047ac
commit 83b6b39910
@@ -97,6 +97,7 @@ open class CompileToBitcode @Inject constructor(
listOf("-std=gnu11", "-O3", "-Wall", "-Wextra", "-Werror")
Language.CPP ->
listOfNotNull("-std=c++17", "-Werror", "-O2",
"-fno-aligned-allocation", // TODO: Remove when all targets support aligned allocation in C++ runtime.
"-Wall", "-Wextra",
"-Wno-unused-parameter" // False positives with polymorphic functions.
)